(feat) handle for save params when navigate to home
This commit is contained in:
@@ -21,6 +21,7 @@ import InActivePayment from "./pages/inActivePayment";
|
|||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
import { RootState } from "./redux/store";
|
import { RootState } from "./redux/store";
|
||||||
import Page404 from "./pages/404";
|
import Page404 from "./pages/404";
|
||||||
|
import RedirectToHome from "./utils/redirect-to-home ";
|
||||||
// import LandingLayout from "./layout/LandingLayout";
|
// import LandingLayout from "./layout/LandingLayout";
|
||||||
// import Landing from "./pages/landing";
|
// import Landing from "./pages/landing";
|
||||||
|
|
||||||
@@ -28,6 +29,7 @@ const App = () => {
|
|||||||
const { isPaymentGateway } = useSelector(
|
const { isPaymentGateway } = useSelector(
|
||||||
(state: RootState) => state.isPaymentGatewayState
|
(state: RootState) => state.isPaymentGatewayState
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Router basename="/">
|
<Router basename="/">
|
||||||
<HelmetProvider>
|
<HelmetProvider>
|
||||||
@@ -44,7 +46,7 @@ const App = () => {
|
|||||||
</Route> */}
|
</Route> */}
|
||||||
<Route path="/" element={<Layout />}>
|
<Route path="/" element={<Layout />}>
|
||||||
<Route index element={<Shop />} />
|
<Route index element={<Shop />} />
|
||||||
<Route path="/configs/:configs" element={<Navigate to="/" />} />
|
<Route path="/configs/:configs" element={<RedirectToHome />} />
|
||||||
<Route path="tutorial" element={<Tutorial />} />
|
<Route path="tutorial" element={<Tutorial />} />
|
||||||
<Route path="rule" element={<Rule />} />
|
<Route path="rule" element={<Rule />} />
|
||||||
<Route path="about" element={<About />} />
|
<Route path="about" element={<About />} />
|
||||||
|
|||||||
Reference in New Issue
Block a user