From 0e0a0175cb5a85936ac58da6b5e54bf0c8b0131c Mon Sep 17 00:00:00 2001 From: miniseung Date: Wed, 6 Aug 2025 13:47:27 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=EC=A3=BC=EC=86=8C=EB=93=B1?= =?UTF-8?q?=EB=A1=9D,=EA=B3=84=EC=A2=8C=EB=93=B1=EB=A1=9D=20=EB=92=A4?= =?UTF-8?q?=EB=A1=9C=EA=B0=80=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/layout/header/account.tsx | 10 +++++++++- apps/web/src/components/layout/header/address.tsx | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/layout/header/account.tsx b/apps/web/src/components/layout/header/account.tsx index b6f999c2..31cf47e2 100644 --- a/apps/web/src/components/layout/header/account.tsx +++ b/apps/web/src/components/layout/header/account.tsx @@ -16,9 +16,17 @@ const AccountHeader = () => { ? '계좌 수정' : '계좌 관리'; + const handleOnClick = () => { + if (pathname.includes('/create') || pathname.includes('/edit')) { + routes.push('/address'); + } else { + routes.push('/profile'); + } + }; + return ( -

{title}

diff --git a/apps/web/src/components/layout/header/address.tsx b/apps/web/src/components/layout/header/address.tsx index 479a906e..239f97f8 100644 --- a/apps/web/src/components/layout/header/address.tsx +++ b/apps/web/src/components/layout/header/address.tsx @@ -16,9 +16,17 @@ const AddressHeader = () => { ? '주소 수정' : '주소 관리'; + const handleOnClick = () => { + if (pathname.includes('/create') || pathname.includes('/edit')) { + routes.push('/address'); + } else { + routes.push('/profile'); + } + }; + return ( -

{title}

From 7d94a9fcf4d0c387a3371dbbfac9a30b2cc3f97a Mon Sep 17 00:00:00 2001 From: miniseung Date: Wed, 6 Aug 2025 13:50:47 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=EC=98=A4=ED=83=80=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/layout/header/account.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/layout/header/account.tsx b/apps/web/src/components/layout/header/account.tsx index 31cf47e2..54712e51 100644 --- a/apps/web/src/components/layout/header/account.tsx +++ b/apps/web/src/components/layout/header/account.tsx @@ -18,7 +18,7 @@ const AccountHeader = () => { const handleOnClick = () => { if (pathname.includes('/create') || pathname.includes('/edit')) { - routes.push('/address'); + routes.push('/account'); } else { routes.push('/profile'); }