feat: add sample todo with valkyr/db
This commit is contained in:
@@ -2,6 +2,7 @@ import { createRootRoute, createRoute, Outlet } from "@tanstack/react-router";
|
||||
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
||||
|
||||
import { CreateAccountView } from "./views/account/create.view.tsx";
|
||||
import { TodosView } from "./views/todo/todos.view.tsx";
|
||||
|
||||
const rootRoute = createRootRoute({
|
||||
component: () => (
|
||||
@@ -26,4 +27,10 @@ const createAccountRoute = createRoute({
|
||||
component: CreateAccountView,
|
||||
});
|
||||
|
||||
export const routeTree = rootRoute.addChildren([homeRoute, createAccountRoute]);
|
||||
const todosRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: "/todos",
|
||||
component: TodosView,
|
||||
});
|
||||
|
||||
export const routeTree = rootRoute.addChildren([homeRoute, createAccountRoute, todosRoute]);
|
||||
|
||||
Reference in New Issue
Block a user