diff --git a/src/app/desktop/(nav-bar)/rental-history/page.tsx b/src/app/desktop/(nav-bar)/rental-history/page.tsx index 07ef82a..e0b980a 100644 --- a/src/app/desktop/(nav-bar)/rental-history/page.tsx +++ b/src/app/desktop/(nav-bar)/rental-history/page.tsx @@ -20,11 +20,9 @@ export default function RentalHistoryPage() { }, [page]); const handlePageChange = async (pageChangeAction: PageChangeAction) => { - console.log('PageChange:', pageChangeAction); setPage((current) => pageChangeAction === 'NEXT' ? current + 1 : current - 1, ); - console.log(`page: ${page}`); }; return ( diff --git a/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx b/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx index 9eaedb2..ef74f0f 100644 --- a/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx +++ b/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx @@ -10,6 +10,7 @@ export default function DashboardItem({ studentId, status, applicatedAt, + rentedCount, handleApproveBtnClick, handleCancelBtnClick, }: DashboardProps) { @@ -45,7 +46,9 @@ export default function DashboardItem({
-
{itemName}
+
+ {itemName} ({rentedCount}개) +
diff --git a/src/app/mobile/admin/dashboard/page.tsx b/src/app/mobile/admin/dashboard/page.tsx index 85c13fe..69fc4cc 100644 --- a/src/app/mobile/admin/dashboard/page.tsx +++ b/src/app/mobile/admin/dashboard/page.tsx @@ -140,6 +140,7 @@ export default function Dashboard() { studentId={item.studentId} status={item.status} applicatedAt={item.applicatedAt} + rentedCount={item.rentedCount} handleApproveBtnClick={() => { if (item.rentalHistoryId !== undefined) { handleApproveBtnClick({ diff --git a/src/app/mobile/admin/notification/page.tsx b/src/app/mobile/admin/notification/page.tsx index 0827b76..d46a9f4 100644 --- a/src/app/mobile/admin/notification/page.tsx +++ b/src/app/mobile/admin/notification/page.tsx @@ -39,7 +39,7 @@ export default function Notification() { 현재 알림이 없습니다. ) : ( - notificationDetail.map((item) => ( + notificationDetail?.map((item) => ( { if (!currentToken) { alert('알림을 허용해 주세요.'); } else { - console.log('currentToken', currentToken); localStorage.setItem('fcmToken', currentToken); await postFCMToken(currentToken); } diff --git a/src/types/dashboardType.ts b/src/types/dashboardType.ts index d6b8145..8598a26 100644 --- a/src/types/dashboardType.ts +++ b/src/types/dashboardType.ts @@ -6,6 +6,7 @@ export interface DashboardProps { studentId: string; status: string; applicatedAt: string; + rentedCount: number; handleApproveBtnClick: () => void; handleCancelBtnClick: () => void; }