aboutsummaryrefslogtreecommitdiff
path: root/src/hooks
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-03 17:39:51 +0300
committereug-vs <eug-vs@keemail.me>2020-07-03 17:41:31 +0300
commit58d4c457ba418837acfceaac6ed787797ca73a6b (patch)
tree4e44a37003a57eab31fa7580f8f26083214c468b /src/hooks
parente6c8ec8d1cd861ec2bbe0b85e97f9c931375a06f (diff)
downloadwhich-ui-58d4c457ba418837acfceaac6ed787797ca73a6b.tar.gz
feat: remove padding from search results
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/useNavigate.tsx1
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 };