First implementation of Plimi
This commit is contained in:
31
src/app/router.tsx
Normal file
31
src/app/router.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { createBrowserRouter } from "react-router-dom";
|
||||
import { AppShell } from "../components/layout/AppShell";
|
||||
import { HomePage } from "../pages/HomePage";
|
||||
import { ToolsPage } from "../pages/ToolsPage";
|
||||
import { ToolDetailPage } from "../pages/ToolDetailPage";
|
||||
import { HowItWorksPage } from "../pages/HowItWorksPage";
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <AppShell />,
|
||||
children: [
|
||||
{
|
||||
index: true,
|
||||
element: <HomePage />,
|
||||
},
|
||||
{
|
||||
path: "tools",
|
||||
element: <ToolsPage />,
|
||||
},
|
||||
{
|
||||
path: "tools/:toolId",
|
||||
element: <ToolDetailPage />,
|
||||
},
|
||||
{
|
||||
path: "how-it-works",
|
||||
element: <HowItWorksPage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user