From fc86e904aa942c6cdeb15d0b9bb8dc565c551594 Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Fri, 7 Feb 2025 01:33:20 +0800 Subject: [PATCH] refactor: improve code formatting in Footer and ServerListClient components --- .../ClientComponents/main/ServerListClient.tsx | 11 +++++++++-- app/(main)/footer.tsx | 16 +++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/app/(main)/ClientComponents/main/ServerListClient.tsx b/app/(main)/ClientComponents/main/ServerListClient.tsx index af63491..a446920 100644 --- a/app/(main)/ClientComponents/main/ServerListClient.tsx +++ b/app/(main)/ClientComponents/main/ServerListClient.tsx @@ -71,10 +71,17 @@ const ErrorState = ({ error, t }: { error: Error; t: any }) => ( ) -const ServerList = ({ servers, inline, containerRef }: { servers: any[]; inline: string; containerRef: any }) => { +const ServerList = ({ + servers, + inline, + containerRef, +}: { servers: any[]; inline: string; containerRef: any }) => { if (inline === "1") { return ( -
+
{servers.map((serverInfo) => ( ))} diff --git a/app/(main)/footer.tsx b/app/(main)/footer.tsx index 7958feb..28e9cfb 100644 --- a/app/(main)/footer.tsx +++ b/app/(main)/footer.tsx @@ -20,7 +20,8 @@ const FooterLink = ({ href, children }: LinkProps) => ( ) -const baseTextStyles = "text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50" +const baseTextStyles = + "text-[13px] font-light tracking-tight text-neutral-600/50 dark:text-neutral-300/50" export default function Footer() { const t = useTranslations("Footer") @@ -32,19 +33,12 @@ export default function Footer() {

{t("p_146-598_Findthecodeon")}{" "} - - {t("a_303-585_GitHub")} - - - v{version} - + {t("a_303-585_GitHub")} + v{version}

{t("section_607-869_2020")} - {currentYear}{" "} - - {t("a_800-850_Hamster1963")} - + {currentYear} {t("a_800-850_Hamster1963")}