Skip to content

Commit b57ca50

Browse files
Merge branch 'main' into shorten_import
2 parents afefa00 + a548ffb commit b57ca50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

resources/js/hooks/use-mobile.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import * as React from 'react';
2-
import { useEffect } from 'react';
1+
import { useEffect, useState } from 'react';
32

43
const MOBILE_BREAKPOINT = 768;
54

65
export function useIsMobile() {
7-
const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);
6+
const [isMobile, setIsMobile] = useState<boolean | undefined>(undefined);
87

98
useEffect(() => {
109
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);

0 commit comments

Comments
 (0)