From b1c993e5e19c674c59607f49d8cf5c54f20076d9 Mon Sep 17 00:00:00 2001 From: eunhak Date: Thu, 13 Jun 2024 00:34:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=81=B4=EB=A6=AD=20cursor=20UI=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/MainHeader.tsx | 6 ++--- src/components/home/OfficeNotice.tsx | 40 ++++++++++++++++------------ src/components/map/BranchInfo.tsx | 6 ++++- 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/components/home/MainHeader.tsx b/src/components/home/MainHeader.tsx index 83ee013..8cb23f8 100644 --- a/src/components/home/MainHeader.tsx +++ b/src/components/home/MainHeader.tsx @@ -10,11 +10,11 @@ const MainHeader = () => {
-
-
router.push('mypage/question')}> +
+
router.push('mypage/question')}>
-
router.push('/notification')}> +
router.push('/notification')}>
diff --git a/src/components/home/OfficeNotice.tsx b/src/components/home/OfficeNotice.tsx index 059c55e..28afdda 100644 --- a/src/components/home/OfficeNotice.tsx +++ b/src/components/home/OfficeNotice.tsx @@ -15,28 +15,34 @@ const OfficeNotice: React.FC = () => { const data = await getSelectedOfficeInfo(selectedBranch!.branchName); const officeInfo = data.data; console.log(officeInfo); - router.push({ - pathname: `/branches/${encodeURIComponent(selectedBranch!.branchName)}`, - query: { - name: selectedBranch!.branchName, - urgentNoticeTitle, - urgentNoticeContent, - address: officeInfo.branchAddress, - branchPhoneNumber: officeInfo.branchPhoneNumber, - roadFromStation: officeInfo.roadFromStation, - stationToBranch: officeInfo.stationToBranch.join(','), - branchId: officeInfo.branchId as number, - scrollToOffice: true - } - }, `/branches/${encodeURIComponent(selectedBranch!.branchName)}`); + router.push( + { + pathname: `/branches/${encodeURIComponent(selectedBranch!.branchName)}`, + query: { + name: selectedBranch!.branchName, + urgentNoticeTitle, + urgentNoticeContent, + address: officeInfo.branchAddress, + branchPhoneNumber: officeInfo.branchPhoneNumber, + roadFromStation: officeInfo.roadFromStation, + stationToBranch: officeInfo.stationToBranch.join(','), + branchId: officeInfo.branchId as number, + scrollToOffice: true + } + }, + `/branches/${encodeURIComponent(selectedBranch!.branchName)}` + ); } catch (error) { console.error('Error fetching office info:', error); } }; - + return ( <> -
+
@@ -46,7 +52,7 @@ const OfficeNotice: React.FC = () => { {urgentNoticeTitle ? urgentNoticeTitle : '긴급 공지가 없습니다.'}
{urgentNoticeContent && ( -
+
)} diff --git a/src/components/map/BranchInfo.tsx b/src/components/map/BranchInfo.tsx index 2a9c836..7cda9f9 100644 --- a/src/components/map/BranchInfo.tsx +++ b/src/components/map/BranchInfo.tsx @@ -184,7 +184,11 @@ const BranchInfo: React.FC = () => { return (
- + {branchName}