Mamadou DICKO 2023-12-06 17:24:59 +01:00 committed by GitHub
parent d9f6ce4e68
commit 826ac501e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ import { useEffect, useState } from "react";
const MOBILE_MAX_WIDTH = 640; const MOBILE_MAX_WIDTH = 640;
export const useDevice = (): { isMobile: boolean } => { export const useDevice = (): { isMobile: boolean } => {
const [isMobile, setIsMobile] = useState(true); const [isMobile, setIsMobile] = useState(false);
useEffect(() => { useEffect(() => {
const handleResize = () => { const handleResize = () => {