From 1f62402a2ba957539ff98758e59e7bbca00ce3b6 Mon Sep 17 00:00:00 2001 From: amir hosein gorji Date: Sun, 17 Jul 2022 11:32:30 +0430 Subject: [PATCH] update src/views/Home/Navbar/Mobile/index.js and Reset.js --- src/views/Home/Navbar/Mobile/index.js | 9 +++------ src/views/Reset.js | 10 +++++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/Home/Navbar/Mobile/index.js b/src/views/Home/Navbar/Mobile/index.js index 6f3c54e..177d52c 100644 --- a/src/views/Home/Navbar/Mobile/index.js +++ b/src/views/Home/Navbar/Mobile/index.js @@ -17,10 +17,6 @@ import { publicApi } from "~/Redux/actions"; import "./index.scss"; -function Navigate({ path }) { - let history = useHistory(); - return <>{history.push(path)}; -} function BackButton({ children }) { let history = useHistory(); return ( @@ -84,6 +80,7 @@ function MobileNavbar(props) { /> ); + let history = useHistory(); if (!status) return (