diff options
Diffstat (limited to 'src/hooks/useNavigate.tsx')
-rw-r--r-- | src/hooks/useNavigate.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hooks/useNavigate.tsx b/src/hooks/useNavigate.tsx index befc529..47de4df 100644 --- a/src/hooks/useNavigate.tsx +++ b/src/hooks/useNavigate.tsx @@ -24,6 +24,7 @@ const useProvideNavigation = () => { const navigate: ContextType['navigate'] = (prefix, id?) => { setPage({ prefix, id }); + window.scrollTo(0, 0); }; return { page, setPage, navigate }; |