mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 07:04:21 +01:00
libs: add support for routing in ui-v2 (#2585)
This commit is contained in:
20
ui-v2/src/routes/__root.tsx
Normal file
20
ui-v2/src/routes/__root.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createRootRoute, Link, Outlet } from '@tanstack/react-router';
|
||||
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools';
|
||||
|
||||
export const Route = createRootRoute({
|
||||
component: () => (
|
||||
<>
|
||||
<div className="p-2 flex gap-2">
|
||||
<Link to="/" className="[&.active]:font-bold">
|
||||
Home
|
||||
</Link>{' '}
|
||||
<Link to="/about" className="[&.active]:font-bold">
|
||||
About
|
||||
</Link>
|
||||
</div>
|
||||
<hr />
|
||||
<Outlet />
|
||||
<TanStackRouterDevtools />
|
||||
</>
|
||||
),
|
||||
});
|
||||
Reference in New Issue
Block a user