feat: add initial account creation form
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user