Faculty update

This commit is contained in:
2026-05-06 14:31:43 +05:30
parent 8694a584e6
commit 3b84c47f67
+1 -30
View File
@@ -118,29 +118,7 @@ const TeamMemberDetail: React.FC<TeamMemberDetailProps> = ({ memberId, memberDat
setImageError(true);
};
// Determine status badge config
const getStatusBadge = () => {
if (isRetired) {
return { label: 'RETIRED', bg: '#dc2626' };
}
if (isResigned) {
return { label: 'RESIGNED', bg: '#6b7280' };
}
if (isTrainee) {
return { label: 'Trainee / Fellow', bg: '#374151' };
}
if (isGuidesFriendsPatrons) {
const labels: Record<string, string> = {
GUIDES: 'Guide',
FRIENDS: 'Friend',
PATRONS: 'Patron',
};
return { label: labels[member.category] || member.category, bg: '#012068' };
}
return null;
};
const statusBadge = getStatusBadge();
return (
<div className="min-h-screen bg-white">
@@ -175,14 +153,7 @@ const TeamMemberDetail: React.FC<TeamMemberDetailProps> = ({ memberId, memberDat
<h1 className="text-3xl font-bold" style={{ color: '#012068' }}>
{member.name}
</h1>
{statusBadge && (
<span
className="px-3 py-1 text-xs font-medium rounded-full text-white"
style={{ backgroundColor: statusBadge.bg }}
>
{statusBadge.label}
</span>
)}
</div>
<p className="text-base max-w-2xl leading-relaxed" style={{ color: '#333' }}>
{member.designation || member.position}{' '}