Files
grimoire/src/root.tsx
Claude 470c802364 fix: ensure compact previews properly truncate RichText to single line
- 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
2025-12-22 09:38:27 +00:00

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} />;
}