feat: update AdminMembers and AdminStaff components for improved statistics display and fix typo in MembersDirectory
This commit is contained in:
@@ -111,7 +111,7 @@ const AdminStaff = () => {
|
||||
<StatCard
|
||||
title="Total Staff"
|
||||
//TODO: refractor codebase to have a central admin and user roles config - when user adds roles, they should be added to the config
|
||||
value={users.filter(u => ['admin', 'superadmin', 'finance', 'staff', 'media', 'moderator'].includes(u.role)).length}
|
||||
value={users.filter(u => ['admin', 'superadmin', 'finance', 'staff', 'media'].includes(u.role)).length}
|
||||
icon={Users}
|
||||
iconBgClass="bg-[var(--blue-light)] text-[var(--blue-dark)]"
|
||||
dataTestId="stat-total-members"
|
||||
@@ -124,8 +124,8 @@ const AdminStaff = () => {
|
||||
dataTestId="stat-active-members"
|
||||
/>
|
||||
<StatCard
|
||||
title="Moderators"
|
||||
value={users.filter(u => u.role === 'moderator').length}
|
||||
title="Finance Managers"
|
||||
value={users.filter(u => u.role === 'finance').length}
|
||||
icon={CreditCard}
|
||||
iconBgClass="text-brand-light-orange"
|
||||
dataTestId="stat-payment-pending-members"
|
||||
|
||||
Reference in New Issue
Block a user