fix group menu

This commit is contained in:
unknown
2025-03-03 00:21:51 +07:00
71 changed files with 4252 additions and 15 deletions

View File

@ -0,0 +1,37 @@
import { ColumnDef } from '@tanstack/react-table';
export type Group = {
id: number;
createdDate: Date;
name: string;
status: string;
description: string;
};
export const columns: ColumnDef<Group>[] = [
{
accessorKey: 'id',
header: 'ID'
},
{
accessorKey: 'createdDate',
header: 'Created Date',
cell: ({ row }) => new Date(row.original.createdDate).toLocaleDateString()
},
{
accessorKey: 'name',
header: 'Name'
},
{
accessorKey: 'status',
header: 'Status'
},
{
accessorKey: 'description',
header: 'Description'
},
// {
// id: 'actions',
// header: 'Actions'
// }
];