theme-provider #20

Merged
andika merged 12 commits from theme-provider into dev 2026-01-27 08:41:49 +00:00
3 changed files with 11 additions and 11 deletions
Showing only changes of commit 7ee5cb0d9c - Show all commits

View File

@@ -270,13 +270,6 @@ const AdminMembers = () => {
Quick Overview Quick Overview
</div> </div>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4"> <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4">
<StatCard
title="Total Members"
value={users.length}
icon={Users}
iconBgClass="bg-[var(--blue-light)] text-[var(--blue-dark)]"
dataTestId="stat-total-members"
/>
<StatCard <StatCard
title="Active" title="Active"
value={users.filter(u => u.status === 'active').length} value={users.filter(u => u.status === 'active').length}
@@ -298,6 +291,13 @@ const AdminMembers = () => {
iconBgClass=" text-brand-pink" iconBgClass=" text-brand-pink"
dataTestId="stat-inactive-members" dataTestId="stat-inactive-members"
/> />
<StatCard
title="Total Members"
value={users.length}
icon={Users}
iconBgClass="bg-[var(--blue-light)] text-[var(--blue-dark)]"
dataTestId="stat-total-members"
/>
</div> </div>
</div> </div>

View File

@@ -111,7 +111,7 @@ const AdminStaff = () => {
<StatCard <StatCard
title="Total Staff" 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 //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} icon={Users}
iconBgClass="bg-[var(--blue-light)] text-[var(--blue-dark)]" iconBgClass="bg-[var(--blue-light)] text-[var(--blue-dark)]"
dataTestId="stat-total-members" dataTestId="stat-total-members"
@@ -124,8 +124,8 @@ const AdminStaff = () => {
dataTestId="stat-active-members" dataTestId="stat-active-members"
/> />
<StatCard <StatCard
title="Moderators" title="Finance Managers"
value={users.filter(u => u.role === 'moderator').length} value={users.filter(u => u.role === 'finance').length}
icon={CreditCard} icon={CreditCard}
iconBgClass="text-brand-light-orange" iconBgClass="text-brand-light-orange"
dataTestId="stat-payment-pending-members" dataTestId="stat-payment-pending-members"

View File

@@ -121,7 +121,7 @@ const MembersDirectory = () => {
LOAF Members LOAF Members
</h1> </h1>
<p className="text-lg " style={{ fontFamily: "'Nunito Sans', sans-serif" }}> <p className="text-lg " style={{ fontFamily: "'Nunito Sans', sans-serif" }}>
<span className='text-foreground'>Number of current memebers in the directory: </span> <span className='text-brand-purple font-medium'>{totalMembers}</span> <span className='text-foreground'>Number of current members in the directory: </span> <span className='text-brand-purple font-medium'>{totalMembers}</span>
</p> </p>
</div> </div>