From aaf737af59e183df2997547edee4a90792bfa98a Mon Sep 17 00:00:00 2001 From: ppc Date: Wed, 7 Aug 2024 18:07:14 +0100 Subject: [PATCH] add card management button --- aimenet-web/app/page.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/aimenet-web/app/page.tsx b/aimenet-web/app/page.tsx index 23794ef..c27a5b8 100644 --- a/aimenet-web/app/page.tsx +++ b/aimenet-web/app/page.tsx @@ -8,7 +8,7 @@ import {useForm} from "react-hook-form"; import {useRouter} from "next/navigation"; import {AppRouterInstance} from "next/dist/shared/lib/app-router-context.shared-runtime"; import { - ChevronRight, + ChevronRight, CreditCard, Earth, History, Loader, @@ -35,6 +35,7 @@ import { } from "@/components/ui/context-menu"; import {Alert, AlertDescription, AlertTitle} from "@/components/ui/alert"; import {Form, FormControl, FormField, FormItem, FormMessage} from "@/components/ui/form"; +import {useMediaQuery} from "@/hooks/use-media-query"; const serverAdditionSchema = z.object({ address: z.string().startsWith("http") @@ -220,10 +221,17 @@ function ServerAddForm() { export default function ServerListingPage() { const servers = useLiveQuery(() => db.servers.toArray()); + const router = useRouter(); return (
-

Servers

+
+

Servers

+ +