From 223dc32500243b3ce6f91155cb8c2fdf74098994 Mon Sep 17 00:00:00 2001 From: ppc Date: Wed, 7 Aug 2024 20:00:56 +0100 Subject: [PATCH] move footer to ui/ --- aimenet-web/app/page.tsx | 14 +++++--------- aimenet-web/components/{ui => }/footer.tsx | 0 2 files changed, 5 insertions(+), 9 deletions(-) rename aimenet-web/components/{ui => }/footer.tsx (100%) diff --git a/aimenet-web/app/page.tsx b/aimenet-web/app/page.tsx index f6fd384..aada902 100644 --- a/aimenet-web/app/page.tsx +++ b/aimenet-web/app/page.tsx @@ -16,7 +16,7 @@ import { Plus, ShieldAlert, SquareArrowOutUpRight, - Trash + Trash, WalletCards } from "lucide-react"; import {useLiveQuery} from "dexie-react-hooks"; import {AimeServer, db} from "@/lib/database"; @@ -24,7 +24,7 @@ import {zodResolver} from "@hookform/resolvers/zod"; import {Card} from "@/components/ui/card"; import {Input} from "@/components/ui/input"; import {Button} from "@/components/ui/button"; -import {Footer} from "@/components/ui/footer"; +import {Footer} from "@/components/footer"; import {Separator} from "@/components/ui/separator"; import { ContextMenu, @@ -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 {LoadingIndicator} from "@/components/loading-indicator"; const serverAdditionSchema = z.object({ address: z.string().startsWith("http") @@ -48,12 +49,7 @@ function ServerList(props: { servers: AimeServer[] | undefined }) { const router = useRouter(); if (!props.servers) { - return ( -
- - Loading... -
- ); + return (); } if (!props.servers.length) { @@ -227,7 +223,7 @@ export default function ServerListingPage() {

Servers

diff --git a/aimenet-web/components/ui/footer.tsx b/aimenet-web/components/footer.tsx similarity index 100% rename from aimenet-web/components/ui/footer.tsx rename to aimenet-web/components/footer.tsx