initial commit
This commit is contained in:
17
web/src/main.tsx
Normal file
17
web/src/main.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
||||
import { rootRoute } from "@/root-route.tsx";
|
||||
import { workspacesRoutes } from "@/workspaces/routes.ts";
|
||||
import "./index.css";
|
||||
import {templateEditorRoute, templatesDashboardRoute} from "@/templates/routes.tsx";
|
||||
|
||||
const router = createRouter({
|
||||
routeTree: rootRoute.addChildren([workspacesRoutes, templatesDashboardRoute, templateEditorRoute]),
|
||||
});
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<RouterProvider router={router} />
|
||||
</StrictMode>,
|
||||
);
|
Reference in New Issue
Block a user