From 58d4c457ba418837acfceaac6ed787797ca73a6b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 3 Jul 2020 17:39:51 +0300
Subject: feat: remove padding from search results

---
 src/hooks/useNavigate.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/hooks/useNavigate.tsx')

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 };
-- 
cgit v1.2.3

