diff --git a/app/routes/admin.tsx b/app/routes/admin.tsx index 3cef405..16df021 100644 --- a/app/routes/admin.tsx +++ b/app/routes/admin.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import { Link, Outlet, redirect } from "react-router"; import { auth } from "~/lib/auth.server"; import type { Route } from "./+types/admin"; @@ -44,59 +45,59 @@ export async function loader(args: Route.LoaderArgs) { return { isAdmin }; } -function AdminNavLinks() { +function AdminNavLinks({ onNavigate }: { onNavigate?: () => void }) { return ( <> - - - - - - - -
-