diff --git a/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx b/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx index ef74f0f..a80f549 100644 --- a/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx +++ b/src/app/mobile/admin/dashboard/_components/DashboardItem.tsx @@ -9,7 +9,7 @@ export default function DashboardItem({ renterName, studentId, status, - applicatedAt, + rentAt, rentedCount, handleApproveBtnClick, handleCancelBtnClick, @@ -29,7 +29,7 @@ export default function DashboardItem({ handleCancelBtnClick(); }; - const applicatedTime = convertTime(applicatedAt); + const applicatedTime = convertTime(rentAt); return (
@@ -59,9 +59,10 @@ export default function DashboardItem({
-
신청 시간
+
대여 시간
- {applicatedTime.formattedDate} {applicatedTime.formattedTime} + {applicatedTime.formattedDate}{' '} + {applicatedTime.formattedTime.split(':').slice(0, 2).join(':')}
diff --git a/src/app/mobile/admin/dashboard/page.tsx b/src/app/mobile/admin/dashboard/page.tsx index 69fc4cc..8afcfe7 100644 --- a/src/app/mobile/admin/dashboard/page.tsx +++ b/src/app/mobile/admin/dashboard/page.tsx @@ -139,7 +139,7 @@ export default function Dashboard() { renterName={item.renterName} studentId={item.studentId} status={item.status} - applicatedAt={item.applicatedAt} + rentAt={item.rentAt} rentedCount={item.rentedCount} handleApproveBtnClick={() => { if (item.rentalHistoryId !== undefined) { diff --git a/src/types/dashboardType.ts b/src/types/dashboardType.ts index 8598a26..5afa7f5 100644 --- a/src/types/dashboardType.ts +++ b/src/types/dashboardType.ts @@ -5,7 +5,7 @@ export interface DashboardProps { renterName: string; studentId: string; status: string; - applicatedAt: string; + rentAt: string; rentedCount: number; handleApproveBtnClick: () => void; handleCancelBtnClick: () => void;