|
|
|
@ -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) { |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
); |
|
|
|
|
let history = useHistory(); |
|
|
|
|
if (!status) |
|
|
|
|
return ( |
|
|
|
|
<nav |
|
|
|
@ -118,7 +115,7 @@ function MobileNavbar(props) { |
|
|
|
|
// window.location.reload();
|
|
|
|
|
window.reLang(e.target.value); |
|
|
|
|
props.changeLanguage(); |
|
|
|
|
Navigate("/reset"); |
|
|
|
|
history.push("/reset"); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{[ |
|
|
|
@ -198,7 +195,7 @@ function MobileNavbar(props) { |
|
|
|
|
// window.location.reload();
|
|
|
|
|
window.reLang(e.target.value); |
|
|
|
|
props.changeLanguage(); |
|
|
|
|
Navigate("/reset"); |
|
|
|
|
history.push("/reset"); |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
{[ |
|
|
|
|