refactor: remove unused category column from users dashboard and streamline staff data fetching

This commit is contained in:
Ardeman
2025-03-15 19:43:21 +08:00
parent 978d74d226
commit fe38a63f1c
2 changed files with 3 additions and 16 deletions
+1 -6
View File
@@ -45,10 +45,6 @@ export const UsersPage = () => {
title: 'Email',
data: 'email',
},
{
title: 'Kategori',
data: 'subscribe.status',
},
{
title: 'Status',
data: 'subscribe.subscribe_plan.name',
@@ -62,8 +58,7 @@ export const UsersPage = () => {
<div className="text-sm text-[#7C7C7C]">ID: {data.id.slice(0, 8)}</div>
</div>
),
4: (_value: string) => <span className="text-sm">Pribadi</span>,
5: (value: TColorBadge, _type: unknown, data: TUserResponse) => (
4: (value: TColorBadge, _type: unknown, data: TUserResponse) => (
<span
className={`rounded-lg px-2 text-sm ${getStatusBadge(data.subscribe.status as TColorBadge)}`}
>