lbry-desktop/ui/effects/use-screensize.js
Sean Yesmunt 3b4ac976b6 Revert "full width homepage"
This reverts commit 0018fdaebc.
2020-08-18 12:53:07 -04:00

11 lines
287 B
JavaScript

import useMedia from './use-media';
export function useIsMobile() {
const isMobile = useMedia(['(min-width: 901px)'], [false], true);
return isMobile;
}
export function useIsMediumScreen() {
const isMobile = useMedia(['(min-width: 1151px)'], [false], true);
return isMobile;
}