diff --git a/src/app/admin/kyc/[id]/page.tsx b/src/app/admin/kyc/[id]/page.tsx
index 651b1d0..621d54f 100644
--- a/src/app/admin/kyc/[id]/page.tsx
+++ b/src/app/admin/kyc/[id]/page.tsx
@@ -109,7 +109,7 @@ const mockRequests: Request[] = [
{ id: 'd3', name: 'Driving License', status: 'pending' },
{ id: 'd4', name: 'Profile Photo', status: 'uploaded', uploadedAt: '2024-03-20' },
],
- riderPlan: 'daily_rent',
+ riderPlan: 'single_rent',
employmentInfo: { company: 'Foodpanda', dailyEarning: 2500, whyEV: 'Low maintenance, good for delivery', experience: '3 years bike riding' },
nomineeDetails: { name: 'Fatema', phone: '01712345699', relationship: 'Wife', nid: '1234567890123' },
securityDeposit: 5000,
@@ -306,8 +306,7 @@ export default function KYCDetailPage() {
smsHistory: [
...(prev.smsHistory || []),
{ id: `sms-${Date.now()}`, message: newMessageText, sentAt: new Date().toISOString(), sentBy: 'admin' }
- ],
- notes: [...prev.notes, newMessageText]
+ ]
} : null);
setNewMessageText('');
setShowMessageModal(false);
@@ -694,6 +693,29 @@ export default function KYCDetailPage() {
No notes yet
)}
+
+
+
+ SMS History ({(request.smsHistory || []).length})
+
+ {(request.smsHistory || []).length > 0 ? (
+
+ {(request.smsHistory || []).slice().reverse().map((sms) => (
+
+
+
+ {sms.sentBy === 'admin' ? 'Admin' : 'User'}
+
+ {sms.sentAt}
+
+
{sms.message}
+
+ ))}
+
+ ) : (
+
No SMS history yet
+ )}
+
diff --git a/src/app/admin/kyc/page.tsx b/src/app/admin/kyc/page.tsx
index 188ffb6..b35da0e 100644
--- a/src/app/admin/kyc/page.tsx
+++ b/src/app/admin/kyc/page.tsx
@@ -121,7 +121,7 @@ const mockRequests: Request[] = [
{ id: 'd3', name: 'Driving License', status: 'pending' },
{ id: 'd4', name: 'Profile Photo', status: 'uploaded', uploadedAt: '2024-03-20' },
],
- riderPlan: 'daily_rent',
+ riderPlan: 'single_rent',
employmentInfo: { company: 'Foodpanda', monthlyEarning: 2500, whyEV: 'Low maintenance, good for delivery', experience: '3 years bike riding' },
notes: ['Downloaded app and applied through mobile'],
smsHistory: [],
@@ -242,7 +242,7 @@ const mockRequests: Request[] = [
{ id: 'd18', name: 'Driving License', status: 'uploaded', uploadedAt: '2024-03-21' },
{ id: 'd19', name: 'Profile Photo', status: 'uploaded', uploadedAt: '2024-03-21' },
],
- riderPlan: 'monthly_rent',
+ riderPlan: 'single_rent',
nomineeDetails: { name: 'Rashid', phone: '01798765432', relationship: 'Brother', nid: '9876543210987' },
employmentInfo: { company: ' ssl', monthlyEarning: 2000, whyEV: 'Better income than fuel bike', experience: '2 years' },
notes: [],