add base front
This commit is contained in:
19
frontend/src/router.tsx
Normal file
19
frontend/src/router.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import {
|
||||
createBrowserRouter,
|
||||
} from "react-router";
|
||||
|
||||
import Root from "./root";
|
||||
import { Home } from "./pages/Home";
|
||||
import { ContractForm } from "./pages/ContractForm";
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
Component: Root,
|
||||
// errorElement: <NotFound />,
|
||||
children: [
|
||||
{ index: true, Component: Home },
|
||||
{ path: "/forms", Component: ContractForm },
|
||||
],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user