+
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 (