diff --git a/next.config.ts b/next.config.ts index 8b36a85..8c97613 100644 --- a/next.config.ts +++ b/next.config.ts @@ -3,10 +3,9 @@ import withPWAInit from "@ducanh2912/next-pwa"; const withPWA = withPWAInit({ dest: "public", - disable: false, // Explicitly enabling PWA even in development mode per user request + disable: false, register: true, - skipWaiting: true, -}); +} as any); const nextConfig: NextConfig = { images: { @@ -18,6 +17,7 @@ const nextConfig: NextConfig = { }, ], }, + turbopack: {}, }; export default withPWA(nextConfig); \ No newline at end of file diff --git a/src/app/admin/kyc/[id]/page.tsx b/src/app/admin/kyc/[id]/page.tsx index f6b3968..da49446 100644 --- a/src/app/admin/kyc/[id]/page.tsx +++ b/src/app/admin/kyc/[id]/page.tsx @@ -254,6 +254,7 @@ export default function KYCDetailPage() { const [editForm, setEditForm] = useState>({}); const [showMessageModal, setShowMessageModal] = useState(false); const [showAddNoteModal, setShowAddNoteModal] = useState(false); + const [showApproveModal, setShowApproveModal] = useState(false); const [newNoteText, setNewNoteText] = useState(''); const [newMessageText, setNewMessageText] = useState(''); const [showAddDocModal, setShowAddDocModal] = useState(false); @@ -409,82 +410,86 @@ export default function KYCDetailPage() {

{request.name} • {request.submittedAt}

-
+ +
{editMode ? ( <> - - ) : ( <> - {request.type === 'biker' && request.status !== 'approved' && ( - + )} + {request.type === 'investor' && request.status !== 'approved' && ( + + )} + {request.type === 'swapstation' && request.status !== 'approved' && ( + + )} + {request.type === 'merchant' && request.status !== 'approved' && ( + + )} +
+ + {/* Bottom Row on Mobile: Edit, Note, SMS */} +
+ - )} - {request.type === 'investor' && request.status !== 'approved' && ( - - )} - {request.type === 'swapstation' && request.status !== 'approved' && ( - - )} - {request.type === 'merchant' && request.status !== 'approved' && ( - - )} - - - +
)}
+ @@ -771,6 +776,27 @@ export default function KYCDetailPage() { )} + {showApproveModal && ( +
+
+
+

Approve Request

+ +
+
+

Approve this request and create biker profile?

+
+ + +
+
+
+
+ )} {showAddNoteModal && (