Integrated the footer routes into the App.jsx
This commit is contained in:
parent
47340ff342
commit
190f2c8fcf
@ -1,13 +1,14 @@
|
|||||||
import {createBrowserRouter, RouterProvider} from "react-router-dom";
|
import {createBrowserRouter, RouterProvider} from "react-router-dom";
|
||||||
import Root from "@/common/layouts/Root";
|
import Root from "@/common/layouts/Root";
|
||||||
import routes from "@/common/routes";
|
import routes from "@/common/routes";
|
||||||
|
import footerRoutes from "@/common/routes/footer.jsx";
|
||||||
import NotFound from "@/pages/NotFound";
|
import NotFound from "@/pages/NotFound";
|
||||||
|
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
element: <Root/>,
|
element: <Root/>,
|
||||||
children: routes,
|
children: [...routes, ...footerRoutes],
|
||||||
errorElement: <NotFound />
|
errorElement: <NotFound />
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user