From 33a466841c8c8518ee44c60cd89cfdea5ef47e31 Mon Sep 17 00:00:00 2001 From: TerryM Date: Fri, 29 May 2026 18:19:08 +0800 Subject: [PATCH] =?UTF-8?q?style:=20prettier=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=20PublicLayout=20=E4=BB=A5=E4=BF=AE=E5=A4=8D=20format:check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- src/layouts/PublicLayout.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/layouts/PublicLayout.tsx b/src/layouts/PublicLayout.tsx index 1df5de9..6b78a19 100644 --- a/src/layouts/PublicLayout.tsx +++ b/src/layouts/PublicLayout.tsx @@ -343,7 +343,12 @@ export function PublicLayout() { to="/" className="flex h-8 shrink-0 items-center gap-2 rounded-sm text-[20px] font-black leading-5 tracking-tight text-ark-gold outline-none focus-visible:ring-2 focus-visible:ring-ark-gold/80 focus-visible:ring-offset-2 focus-visible:ring-offset-[#08070c]" aria-label={t("brand")} - onClick={(e) => { if (isHome) { e.preventDefault(); window.scrollTo({ top: 0, behavior: "smooth" }); } }} + onClick={(e) => { + if (isHome) { + e.preventDefault(); + window.scrollTo({ top: 0, behavior: "smooth" }); + } + }} > {t("brand")} @@ -413,7 +418,12 @@ export function PublicLayout() { { if (isHome) { e.preventDefault(); window.scrollTo({ top: 0, behavior: "smooth" }); } }} + onClick={(e) => { + if (isHome) { + e.preventDefault(); + window.scrollTo({ top: 0, behavior: "smooth" }); + } + }} >