refactor: Use arrow function where possible (#3315)

This commit is contained in:
Lipis
2021-03-29 17:09:20 +03:00
committed by GitHub
parent bb568a9670
commit 722e5ca845
14 changed files with 24 additions and 26 deletions

View File

@@ -34,7 +34,4 @@ export const IsMobileProvider = ({
};
export const isMobile = () => getIsMobileMatcher().matches;
export default function useIsMobile() {
return useContext(context);
}
export const useIsMobile = () => useContext(context);