@@ -124,7 +124,11 @@ export default function MyDashboardPage() {
124124
125125 return (
126126 < div className = "flex h-screen overflow-hidden" >
127- < SideMenu teamId = { teamId } dashboardList = { dashboardList } />
127+ < SideMenu
128+ teamId = { teamId }
129+ dashboardList = { dashboardList }
130+ onCreateDashboard = { ( ) => fetchDashboards ( ) }
131+ />
128132
129133 < div className = "flex flex-col flex-1 overflow-hidden" >
130134 < HeaderDashboard
@@ -134,36 +138,44 @@ export default function MyDashboardPage() {
134138 />
135139
136140 < main className = "flex-1 overflow-auto px-[25px] pt-[40px] pb-10 bg-[#f9f9f9] space-y-10" >
137- < section className = "w-full max-w-[1100px] mx-auto" >
138- { /* 카드 영역 */ }
139- < div className = "flex flex-wrap gap-[16px] justify-center" >
140- { currentItems }
141+ { /* 카드 영역 */ }
142+ < section className = "w-full px-[25px] max-w-[1100px] px-4" >
143+ < div className = "flex flex-wrap gap-[16px] justify-start" >
144+ { currentItems . map ( ( item , index ) => (
145+ < div
146+ key = { index }
147+ className = "w-full sm:w-[calc(50%-8px)] lg:w-[calc(33.333%-10.66px)]"
148+ >
149+ { item }
150+ </ div >
151+ ) ) }
141152 </ div >
142-
143- { /* 페이지네이션 */ }
144- { totalPages > 1 && (
145- < div className = "flex justify-center items-center pt-6" >
146- < PaginationButton
147- direction = "left"
148- disabled = { currentPage === 1 }
149- onClick = { handlePrevPage }
150- />
151- < span className = "font-14r text-black3 px-[8px] whitespace-nowrap" >
152- { `${ totalPages } 페이지 중 ${ currentPage } ` }
153- </ span >
154- < PaginationButton
155- direction = "right"
156- disabled = { currentPage === totalPages }
157- onClick = { handleNextPage }
158- />
159- </ div >
160- ) }
161153 </ section >
162154
155+ { totalPages > 1 && (
156+ < div className = "w-full max-w-[1100px] flex justify-center items-center " >
157+ < PaginationButton
158+ direction = "left"
159+ disabled = { currentPage === 1 }
160+ onClick = { handlePrevPage }
161+ />
162+ < span className = "font-14r text-black3 px-[8px] whitespace-nowrap" >
163+ { `${ totalPages } 페이지 중 ${ currentPage } ` }
164+ </ span >
165+ < PaginationButton
166+ direction = "right"
167+ disabled = { currentPage === totalPages }
168+ onClick = { handleNextPage }
169+ />
170+ </ div >
171+ ) }
172+
163173 { /* 초대받은 대시보드 */ }
164- < div className = "mt-[74px] flex justify-center" >
165- < InvitedDashBoard />
166- </ div >
174+ < section className = "w-full px-[25px]" >
175+ < div className = "mt-[74px]" >
176+ < InvitedDashBoard />
177+ </ div >
178+ </ section >
167179 </ main >
168180 </ div >
169181
@@ -200,9 +212,7 @@ export default function MyDashboardPage() {
200212 취소
201213 </ CustomBtn >
202214 < CustomBtn
203- onClick = {
204- selectedCreatedByMe ? ( ) => handleDelete ( ) : ( ) => handleLeave ( )
205- }
215+ onClick = { selectedCreatedByMe ? handleDelete : handleLeave }
206216 className = "cursor-pointer bg-[var(--primary)] text-white px-3 py-1 rounded-md w-[84px] h-[32px]"
207217 >
208218 확인
0 commit comments