Skip to content

Commit 3e36a19

Browse files
committed
Update use-mobile.tsx
1 parent 7732c0c commit 3e36a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/hooks/use-mobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function mediaQueryListener(callback: (event: MediaQueryListEvent) => void) {
1313
}
1414

1515
function isSmallerThanBreakpoint() {
16-
return window.innerWidth < MOBILE_BREAKPOINT;
16+
return mql.matches;
1717
}
1818

1919
export function useIsMobile() {

0 commit comments

Comments
 (0)