const Front = () => {
const navigate = useNavigate();
+ React.useEffect(() => {
+ const returnPath = localStorage.getItem('returnPath');
+ if (returnPath) {
+ localStorage.removeItem('returnPath');
+ navigate(returnPath);
+ }
+ }, []);
+
return <Container className="mt-5">
<Row>
<Col md={6}>