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 Root from "@/common/layouts/Root";
|
||||
import routes from "@/common/routes";
|
||||
import footerRoutes from "@/common/routes/footer.jsx";
|
||||
import NotFound from "@/pages/NotFound";
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <Root/>,
|
||||
children: routes,
|
||||
children: [...routes, ...footerRoutes],
|
||||
errorElement: <NotFound />
|
||||
}
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user