Restructures navigation into a components folder and adds Over mij route
Moves AppShell out of src/shared into a top-level components folder alongside the new Footer and NavigationBar, replaces the about page with over-mij.tsx, and drops the unused counter.ts.
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
import { createRootRoute, Link, Outlet } from '@tanstack/react-router'
|
||||
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
|
||||
import { createRootRoute } from "@tanstack/react-router";
|
||||
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
||||
import AppShell from "../../components/AppShell";
|
||||
|
||||
const RootLayout = () => (
|
||||
<>
|
||||
<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 />
|
||||
<AppShell />
|
||||
<TanStackRouterDevtools />
|
||||
</>
|
||||
)
|
||||
);
|
||||
|
||||
export const Route = createRootRoute({ component: RootLayout })
|
||||
export const Route = createRootRoute({ component: RootLayout });
|
||||
|
||||
Reference in New Issue
Block a user