@@ -0,0 +1,10 @@
|
||||
import { useCallback } from 'react';
|
||||
|
||||
export type CleanupFn = () => void;
|
||||
|
||||
export function useMobileNavigation(): CleanupFn {
|
||||
return useCallback(() => {
|
||||
// Remove pointer-events style from body...
|
||||
document.body.style.removeProperty('pointer-events');
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user