update manage group
This commit is contained in:
@ -13,20 +13,6 @@ export type Group = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<Group>[] => [
|
export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<Group>[] => [
|
||||||
{
|
|
||||||
accessorKey: 'no',
|
|
||||||
header: ({ column }) => {
|
|
||||||
return (
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
onClick={() => column.toggleSorting(column.getIsSorted() === 'asc')}
|
|
||||||
>
|
|
||||||
ID
|
|
||||||
<ArrowUpDown className="ml-2 h-4 w-4" />
|
|
||||||
</Button>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
accessorKey: 'created_at',
|
accessorKey: 'created_at',
|
||||||
header: ({ column }) => {
|
header: ({ column }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user