added Create User
This commit is contained in:
@@ -3,7 +3,8 @@ import { formatters } from '@/utils/formatters';
|
||||
import { ColumnDef } from '@tanstack/react-table';
|
||||
import { Badge } from '../ui/badge';
|
||||
|
||||
import ActionBadge, { UserActionType } from './action-badge';
|
||||
import { LOG_ACTION } from '@/types/enum';
|
||||
import ActionBadge from './action-badge';
|
||||
import ViewDetail from './view-detail-dialog';
|
||||
|
||||
export const logColumns: ColumnDef<AuditWithUser>[] = [
|
||||
@@ -35,14 +36,12 @@ export const logColumns: ColumnDef<AuditWithUser>[] = [
|
||||
thClass: 'w-1/6',
|
||||
},
|
||||
cell: ({ row }) => {
|
||||
return (
|
||||
<ActionBadge action={row.original.action as keyof UserActionType} />
|
||||
);
|
||||
return <ActionBadge action={row.original.action as LOG_ACTION} />;
|
||||
},
|
||||
},
|
||||
{
|
||||
accessorKey: 'createdAt',
|
||||
header: m.logs_page_ui_table_header_action(),
|
||||
header: m.logs_page_ui_table_header_create_at(),
|
||||
meta: {
|
||||
thClass: 'w-2/6',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user