update agent balance column
This commit is contained in:
@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user