From d03c01e3a96bdba99c1e82d45ebeb75cac2a4217 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Thu, 15 May 2025 17:53:14 +0900 Subject: [PATCH 1/2] fix: replace img with next/image for optimized loading in MemberInformationPopup --- src/components/popup/MemberInformationPopup.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/popup/MemberInformationPopup.tsx b/src/components/popup/MemberInformationPopup.tsx index ff1f9fa..87a8829 100644 --- a/src/components/popup/MemberInformationPopup.tsx +++ b/src/components/popup/MemberInformationPopup.tsx @@ -3,6 +3,7 @@ import { useRouter } from 'next/navigation' import { usePopupController } from '@/store/popupController' import { useSessionStore } from '@/store/session' +import Image from 'next/image' export default function MemberInformationPopup() { const popupController = usePopupController() @@ -22,7 +23,7 @@ export default function MemberInformationPopup() {
- +
会員情報
From bc3193714aca30f0002ba5a26adbfdf0557ec1d5 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Thu, 15 May 2025 18:28:31 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20scrollTop=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/common/FloatBtn.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/ui/common/FloatBtn.tsx b/src/components/ui/common/FloatBtn.tsx index 766f236..74aa3d0 100644 --- a/src/components/ui/common/FloatBtn.tsx +++ b/src/components/ui/common/FloatBtn.tsx @@ -5,9 +5,16 @@ import { usePathname } from 'next/navigation' export default function FloatBtn() { const pathname = usePathname() + const scrollToTop = () => { + window.scrollTo({ + top: 0, + behavior: 'smooth', + }) + } + if (pathname === '/login' || pathname === '/') { return null } - return + return }