File tree Expand file tree Collapse file tree
app/(authenticated)/users/_components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"use client" ;
22
33import { ColumnDef } from "@tanstack/react-table" ;
4- import { Badge } from "@/components/ui/badge" ;
54import { Avatar , AvatarFallback } from "@/components/ui/avatar" ;
65import { profileRoleLabel , type UserRow } from "../profile-role-label" ;
76import { 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" ,
You can’t perform that action at this time.
0 commit comments