refactor: remove unused category column from users dashboard and streamline staff data fetching
This commit is contained in:
@@ -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)}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user