feat: replace team members with cards in CMS, add date validation fields, and remove contact info section from user profile

This commit is contained in:
pradeepkumar
2026-04-15 23:39:50 +05:30
parent 974f5a863f
commit 2fdbd4280c
6 changed files with 59 additions and 61 deletions

View File

@@ -464,41 +464,6 @@ export default function UserDetailPage() {
</div>
</div>
{/* Contact Information */}
<div className="bg-white rounded-xl shadow-sm border border-[#e5e7eb] mb-6">
<div className="px-6 py-4 border-b border-[#e5e7eb]">
<h2 className="text-lg font-semibold text-[#00293d] font-fractul">Contact Information</h2>
</div>
<div className="p-6">
<div className="grid grid-cols-2 md:grid-cols-4 gap-6">
<div>
<p className="text-sm text-[#666666]">Phone</p>
<p className="text-sm font-medium text-[#00293d]">
{user.profile?.phone || 'Not provided'}
</p>
</div>
<div>
<p className="text-sm text-[#666666]">City</p>
<p className="text-sm font-medium text-[#00293d]">
{user.profile?.city || 'Not provided'}
</p>
</div>
<div>
<p className="text-sm text-[#666666]">State</p>
<p className="text-sm font-medium text-[#00293d]">
{user.profile?.state || 'Not provided'}
</p>
</div>
<div>
<p className="text-sm text-[#666666]">Country</p>
<p className="text-sm font-medium text-[#00293d]">
{user.profile?.country || 'Not provided'}
</p>
</div>
</div>
</div>
</div>
{/* Dynamic Profile Data (only for AGENT role) */}
{user.role === 'AGENT' && (
<div className="bg-white rounded-xl shadow-sm border border-[#e5e7eb] mb-6">