@@ -37,7 +37,6 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
3737 } )
3838 ) ;
3939 setInviteList ( inviteData ) ;
40- console . log ( "inviteData" , inviteData ) ;
4140 }
4241 } catch ( error ) {
4342 console . error ( "초대내역 불러오는데 오류 발생:" , error ) ;
@@ -63,13 +62,17 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
6362 if ( error instanceof AxiosError ) {
6463 if ( error . response ?. status === 403 ) {
6564 toast . error ( "대시보드 초대 취소 권한이 없습니다." ) ;
65+ return ;
6666 } else if ( error . response ?. status === 404 ) {
6767 toast . error ( "대시보드가 존재하지 않습니다." ) ;
68+ return ;
6869 } else {
6970 toast . error ( "오류가 발생했습니다." ) ;
71+ return ;
7072 }
7173 } else {
7274 toast . error ( "네트워크 오류가 발생했습니다." ) ;
75+ return ;
7376 }
7477 }
7578 } ;
@@ -98,11 +101,13 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
98101 } ;
99102
100103 return (
101- < div className = "relative bg-white p-4 rounded-lg lg:w-[620px] lg:h-[477px] md: w-[544px] md: h-[477px ] sm:w-[284px] h-[406px] " >
104+ < div className = "relative bg-white p-4 rounded-lg lg:w-[620px] lg:h-[477px] w-[284px] h-[406px ] sm:w-[544px] sm: h-[477px] " >
102105 < ToastContainer position = "top-center" autoClose = { 2000 } />
103106 < div className = "flex justify-between items-start sm:items-center" >
104107 { /* 제목 */ }
105- < p className = "sm:text-2xl text-xl font-bold" > 초대 내역</ p >
108+ < p className = "md:text-[24px] text-[20px] text-xl font-bold" >
109+ 초대 내역
110+ </ p >
106111
107112 { /* 페이지네이션 + 초대하기 버튼 컨테이너 */ }
108113 < div className = "flex flex-col sm:flex-row items-end sm:items-center gap-2" >
@@ -117,7 +122,7 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
117122 { /* 초대하기 버튼 (모바일에서 페이지네이션 아래로 이동) */ }
118123 < button
119124 onClick = { ( ) => setIsModalOpen ( true ) }
120- className = "cursor-pointer sm:text-[14px] text-[12px] sm:w-[105px] w-[86px] sm:h-[32px] h-[26px] rounded-[4px] bg-[#5534DA] text-white flex items-center justify-center gap-2"
125+ className = "cursor-pointer sm:text-[14px] text-[12px] sm:w-[105px] w-[86px] sm:h-[32px] h-[26px] rounded-[4px] bg-[#5534DA] text-white flex items-center justify-center gap-2 lg:mr-3 "
121126 >
122127 < img src = "/svgs/add_white_box.svg" alt = "icon" className = "w-4 h-4" />
123128 초대하기
@@ -129,12 +134,12 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
129134 </ div >
130135
131136 { /* 구성원 리스트 */ }
132- < p className = "sm:text-base text-sm text-gray-500 mt-6 ml-4 " > 이메일</ p >
137+ < p className = "sm:text-base text-sm text-gray-500 mt-6" > 이메일</ p >
133138 < ul >
134139 { paginatedInvitation . map ( ( invite , index ) => (
135140 < li
136141 key = { index }
137- className = { `flex items-center justify-between p -4 ${
142+ className = { `flex items-center justify-between mt-3 pb -4 ${
138143 index !== paginatedInvitation . length - 1
139144 ? "border-b border-gray-200"
140145 : ""
@@ -146,7 +151,7 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
146151 </ div >
147152 < button
148153 onClick = { ( ) => handleCancel ( invite . id ) }
149- className = "cursor-pointer font-medium sm:text-sm text-xs h-[32px] sm:h-[32px] w-[52px] sm:w-[84px] md:w-[84px] border border-gray-300 text-indigo-600 px-2 py-1 rounded-md hover:bg-gray-100"
154+ className = "cursor-pointer font-medium sm:text-sm text-xs h-[32px] sm:h-[32px] w-[52px] sm:w-[84px] md:w-[84px] border border-gray-300 text-indigo-600 px-2 py-1 rounded-md hover:bg-gray-100 lg:mr-3 "
150155 >
151156 취소
152157 </ button >
0 commit comments