Skip to content

Commit 93973d0

Browse files
committed
refactor(users): remove status column from users table component
1 parent f267df1 commit 93973d0

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

app/(authenticated)/users/_components/users-columns.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use client";
22

33
import { ColumnDef } from "@tanstack/react-table";
4-
import { Badge } from "@/components/ui/badge";
54
import { Avatar, AvatarFallback} from "@/components/ui/avatar";
65
import { profileRoleLabel, type UserRow } from "../profile-role-label";
76
import { UserActionsCell } from "./user-actions-cell";
@@ -51,24 +50,6 @@ export function getUsersColumns(
5150
</span>
5251
),
5352
},
54-
{
55-
id: "status",
56-
header: "Status",
57-
meta: { colWidth: "14%" },
58-
cell: ({ row }) => {
59-
const active = row.original.isActive;
60-
return (
61-
<Badge variant={active ? "default" : "secondary"} className="gap-1.5">
62-
<span
63-
className={`h-2 w-2 rounded-full ${
64-
active ? "bg-green-500" : "bg-muted-foreground/50"
65-
}`}
66-
/>
67-
{active ? "Active" : "Inactive"}
68-
</Badge>
69-
);
70-
},
71-
},
7253
{
7354
id: "lastLoginAt",
7455
header: "Last Login",

0 commit comments

Comments
 (0)