Skip to content

Commit 9825133

Browse files
authored
Merge pull request #169 from part3-4team-Taskify/sidemenu10
[Fix] 페이지별 사이드메뉴 갱신 추가
2 parents 90d1896 + d48746a commit 9825133

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

src/pages/dashboard/[dashboardId]/edit.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ export default function EditDashboard() {
5959

6060
return (
6161
<div className="flex h-screen overflow-hidden">
62-
<SideMenu teamId={TEAM_ID} dashboardList={dashboardList} />
62+
<SideMenu
63+
teamId={TEAM_ID}
64+
dashboardList={dashboardList}
65+
onCreateDashboard={() => fetchDashboards()}
66+
/>
6367

6468
<div className="flex flex-col flex-1">
6569
<div className="flex flex-col">

src/pages/dashboard/[dashboardId]/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ export default function Dashboard() {
103103

104104
return (
105105
<div className="flex h-screen overflow-hidden ">
106-
<SideMenu teamId={TEAM_ID} dashboardList={dashboardList} />
107-
106+
<SideMenu
107+
teamId={TEAM_ID}
108+
dashboardList={dashboardList}
109+
onCreateDashboard={() => fetchDashboards()}
110+
/>
108111
<div className="flex flex-col flex-1 overflow-hidden">
109112
<HeaderDashboard variant="dashboard" dashboardId={dashboardId} />
110113

src/pages/mypage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ export default function MyPage() {
3636

3737
return (
3838
<div className="flex h-screen overflow-hidden">
39-
<SideMenu teamId={TEAM_ID} dashboardList={dashboards} />
39+
<SideMenu
40+
teamId={TEAM_ID}
41+
dashboardList={dashboards}
42+
onCreateDashboard={() => fetchDashboards()}
43+
/>
4044
<div className="flex flex-col flex-1 bg-[var(--color-gray5)]">
4145
<HeaderMyPage variant="mypage" />
4246
<div className="flex flex-col justify-start overflow-auto w-full px-6 mt-6">

0 commit comments

Comments
 (0)