Template
1
0

feat: add initial account creation form

This commit is contained in:
2025-08-13 00:30:02 +02:00
parent 82d7a0d9cd
commit 0b0ecbcb79
12 changed files with 449 additions and 167 deletions

View File

@@ -1,9 +1,29 @@
import { createRootRoute } from "@tanstack/react-router";
import { createRootRoute, createRoute, Outlet } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import App from "./App.tsx";
import { CreateAccountView } from "./views/account/create.view.tsx";
const rootRoute = createRootRoute({
component: App,
component: () => (
<>
<Outlet />
<TanStackRouterDevtools />
</>
),
});
export const routeTree = rootRoute.addChildren([]);
const homeRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/",
component: function Index() {
return <h3>Welcome Home!</h3>;
},
});
const createAccountRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/accounts",
component: CreateAccountView,
});
export const routeTree = rootRoute.addChildren([homeRoute, createAccountRoute]);