Yidadaa 2 years ago
parent 693dcf12d6
commit 5185166e3b

@ -21,7 +21,6 @@ import {
HashRouter as Router,
Routes,
Route,
useNavigation,
useLocation,
} from "react-router-dom";
@ -131,7 +130,6 @@ function MobileScreen() {
export function Home() {
useSwitchTheme();
const isMobileScreen = useMobileScreen();
if (!useHasHydrated()) {

@ -66,6 +66,9 @@ export function useMobileScreen() {
}
export function isMobileScreen() {
if (typeof window === "undefined") {
return false;
}
return window.innerWidth <= 600;
}

Loading…
Cancel
Save