Skip to content

Commit 62ac3d4

Browse files
authored
Merge pull request #97 from part3-4team-Taskify/feature/Gnb
[Feat] Gnb: 유저 정보 섹션 클릭 시 mypage 이동 기능 추가
2 parents aab636f + 37a4829 commit 62ac3d4

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/components/gnb/HeaderDashboard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const HeaderDashboard: React.FC<HeaderDashboardProps> = ({
136136
if (dashboardId) {
137137
router.push(`/dashboard/${dashboardId}/edit`);
138138
} else {
139-
router.push("mydashboard");
139+
router.push("/mydashboard");
140140
}
141141
}}
142142
className="flex items-center justify-center w-[49px] h-[30px] md:w-[85px] md:h-[36px] lg:w-[88px] lg:h-[40px] rounded-[8px] border border-[#D9D9D9] gap-[10px] cursor-pointer"
@@ -211,7 +211,10 @@ const HeaderDashboard: React.FC<HeaderDashboardProps> = ({
211211
<SkeletonUser />
212212
) : (
213213
user && (
214-
<div className="flex items-center pr-[10px] md:pr-[30px] lg:pr-[80px] gap-[12px]">
214+
<div
215+
onClick={() => router.push("/mypage")}
216+
className="flex items-center pr-[10px] md:pr-[30px] lg:pr-[80px] gap-[12px] cursor-default"
217+
>
215218
<div className="relative w-[34px] h-[34px] md:w-[38px] md:h-[38px] rounded-full">
216219
{user.profileImageUrl ? (
217220
<Image

src/components/modal/MypageModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Modal } from "./Modal";
2-
import { CustomBtn } from "../button/CustomBtn";
2+
import { CustomBtn } from "../button/CustomButton";
33
import { ReactNode } from "react";
44

55
interface MypageModalProps {

0 commit comments

Comments
 (0)