mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
Setup Inertia (#593)
This commit is contained in:
8
resources/js/hooks/use-mobile-navigation.ts
Normal file
8
resources/js/hooks/use-mobile-navigation.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import { useCallback } from 'react';
|
||||
|
||||
export function useMobileNavigation() {
|
||||
return useCallback(() => {
|
||||
// Remove pointer-events style from body...
|
||||
document.body.style.removeProperty('pointer-events');
|
||||
}, []);
|
||||
}
|
Reference in New Issue
Block a user