Passport/view/src/index.tsx

24 lines
679 B
TypeScript
Raw Normal View History

2024-01-27 17:07:38 +00:00
import "solid-devtools";
2024-01-27 16:05:19 +00:00
/* @refresh reload */
import { render } from "solid-js/web";
import "./index.css";
import "./assets/fonts/fonts.css";
import { Route, Router } from "@solidjs/router";
import RootLayout from "./layouts/RootLayout.tsx";
2024-01-27 17:27:46 +00:00
import DashboardPage from "./pages/dashboard.tsx";
import LoginPage from "./pages/auth/login.tsx";
import RegisterPage from "./pages/auth/register.tsx";
2024-01-27 16:05:19 +00:00
const root = document.getElementById("root");
render(() => (
<Router root={RootLayout}>
2024-01-27 17:27:46 +00:00
<Route path="/" component={DashboardPage} />
<Route path="/auth/login" component={LoginPage} />
<Route path="/auth/register" component={RegisterPage} />
2024-01-27 16:05:19 +00:00
</Router>
), root!);