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 (