mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 15:36:53 +02:00
- Add line-clamp-1 to all compact preview components for consistent truncation - Fix DefaultCompactPreview, GenericRepostCompactPreview, ZapCompactPreview - Fix Kind1111Renderer parent event preview truncation - Apply auto-formatting fixes from linter
36 lines
738 B
TypeScript
36 lines
738 B
TypeScript
import { createBrowserRouter, RouterProvider } from "react-router";
|
|
import { AppShell } from "./components/layouts/AppShell";
|
|
import DashboardPage from "./components/pages/DashboardPage";
|
|
import SpellbookPage from "./components/pages/SpellbookPage";
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: "/",
|
|
element: (
|
|
<AppShell>
|
|
<DashboardPage />
|
|
</AppShell>
|
|
),
|
|
},
|
|
{
|
|
path: "/preview/:actor/:identifier",
|
|
element: (
|
|
<AppShell>
|
|
<SpellbookPage />
|
|
</AppShell>
|
|
),
|
|
},
|
|
{
|
|
path: "/:actor/:identifier",
|
|
element: (
|
|
<AppShell>
|
|
<SpellbookPage />
|
|
</AppShell>
|
|
),
|
|
},
|
|
]);
|
|
|
|
export default function Root() {
|
|
return <RouterProvider router={router} />;
|
|
}
|