Skip to content

Commit

Permalink
fix: 클릭 cursor UI 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jun 12, 2024
1 parent d0809a2 commit b1c993e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
6 changes: 3 additions & 3 deletions src/components/home/MainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ const MainHeader = () => {
<div className="w-[116px] h-8 cursor-pointer">
<img src="/OffispaceLogo.png" alt="" className="w-full" />
</div>
<div className="flex justify-center items-center gap-6">
<div onClick={() => router.push('mypage/question')}>
<div className="flex justify-center items-center gap-6 ">
<div className="cursor-pointer" onClick={() => router.push('mypage/question')}>
<img src="/home/Inquiry_white.svg" alt="" />
</div>
<div onClick={() => router.push('/notification')}>
<div className="cursor-pointer" onClick={() => router.push('/notification')}>
<img src="/home/Notification_white.svg" alt="" />
</div>
</div>
Expand Down
40 changes: 23 additions & 17 deletions src/components/home/OfficeNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
<div className="w-full h-12 mt-7 flex items-center gap-[13px] px-[13px] py-[14px] rounded shadow border border-gray-200" style={{ backgroundColor: 'rgb(228, 224, 245)' }}>
<div
onClick={handleOfficeInfo}
className=" cursor-pointer w-full h-12 mt-7 flex items-center gap-[13px] px-[13px] py-[14px] rounded shadow border border-gray-200"
style={{ backgroundColor: 'rgb(228, 224, 245)' }}>
<div>
<img src="/home/notice.svg" alt="" />
</div>
Expand All @@ -46,7 +52,7 @@ const OfficeNotice: React.FC = () => {
{urgentNoticeTitle ? urgentNoticeTitle : '긴급 공지가 없습니다.'}
</div>
{urgentNoticeContent && (
<div onClick={handleOfficeInfo} className="cursor-pointer">
<div className="">
<img src="/home/toNext.svg" alt="" />
</div>
)}
Expand Down
6 changes: 5 additions & 1 deletion src/components/map/BranchInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ const BranchInfo: React.FC = () => {
return (
<section className="w-full h-full">
<header className="top-0 left-0 right-0 bg-white z-50 py-4 flex items-center">
<IoIosArrowRoundBack size={40} className="ml-[6px]" onClick={handleBackClick} />
<IoIosArrowRoundBack
size={40}
className="ml-[6px] cursor-pointer"
onClick={handleBackClick}
/>
<span className="text-lg font-semibold ml-[8px]">{branchName}</span>
</header>
<div className="">
Expand Down

0 comments on commit b1c993e

Please sign in to comment.