update agent balance column

This commit is contained in:
wayanrivan
2026-05-29 10:58:00 +07:00
parent 479d27892c
commit 306080f592

View File

@ -13,7 +13,8 @@ export type AgentBalance = {
balance_emoney: string,
balance_merchant: string,
balance_point: string,
balance_deposit: string
balance_deposit: string,
balance_edtl: string,
};
export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<AgentBalance>[] => [
@ -129,6 +130,20 @@ export const getColumns = (handleUpdate: (data: any) => void): ColumnDef<AgentBa
);
}
},
{
accessorKey: 'balance_edtl',
header: ({ column }) => {
return (
<Button
variant="ghost"
onClick={() => column.toggleSorting(column.getIsSorted() === 'asc')}
>
EDTL
<ArrowUpDown className="ml-2 h-4 w-4" />
</Button>
);
}
},
{
accessorKey: 'balance_point',
header: ({ column }) => {