update: table manage products to show transaction type
This commit is contained in:
@ -118,6 +118,16 @@ const ManageProductsContextProvider = ({ children }: { children: React.ReactNode
|
|||||||
headerClassName: 'w-[250px]'
|
headerClassName: 'w-[250px]'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
accessorFn: (row) => row.transaction_type?.name,
|
||||||
|
id: 'transaction_type',
|
||||||
|
header: ({ column }) => <DataGridColumnHeader title="Transaction Type" column={column} />,
|
||||||
|
enableSorting: false,
|
||||||
|
enableHiding: false,
|
||||||
|
meta: {
|
||||||
|
headerClassName: 'w-[250px]'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
accessorFn: (row) => row.type,
|
accessorFn: (row) => row.type,
|
||||||
id: 'type',
|
id: 'type',
|
||||||
|
|||||||
Reference in New Issue
Block a user