fix: rowClassNames.

This commit is contained in:
elforjani13
2021-11-11 15:23:23 +02:00
parent 66641ca56e
commit 5803760c61
9 changed files with 17 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ export default function CustomersBalanceSummaryTable({
const columns = useCustomersSummaryColumns();
const rowClassNames = (row) => {
return [`row-type--${row.original.rowTypes}`];
return [`row-type--${row.original.row_types}`];
};
return (

View File

@@ -31,7 +31,7 @@ export default function CustomersTransactionsTable({
]);
const rowClassNames = (row) => {
return [`row-type--${row.original.rowTypes}`];
return [`row-type--${row.original.row_types}`];
};
return (

View File

@@ -35,7 +35,7 @@ export function useGeneralLedgerTableColumns() {
return row.date;
},
className: 'date',
textOverview: true,
// textOverview: true,
width: 120,
},
{

View File

@@ -29,7 +29,7 @@ export default function InventoryItemDetailsTable({
);
const rowClassNames = (row) => {
return [`row-type--${row.original.rowTypes}`];
return [`row-type--${row.original.row_types}`];
};
return (

View File

@@ -9,7 +9,7 @@ const columnsMapper = (data, index, column) => ({
id: column.key,
key: column.key,
Header: column.label,
// Cell: CellForceWidth,
Cell: CellForceWidth,
accessor: `cells[${index}].value`,
forceWidthAccess: `cells[0].value`,
className: column.key,

View File

@@ -25,7 +25,7 @@ export default function VendorsBalanceSummaryTable({
const columns = useVendorsBalanceColumns();
const rowClassNames = (row) => {
return [`row-type--${row.original.rowTypes}`];
return [`row-type--${row.original.row_types}`];
};
return (

View File

@@ -32,7 +32,7 @@ export default function VendorsTransactionsTable({
]);
const rowClassNames = (row) => {
return [`row-type--${row.original.rowTypes}`];
return [`row-type--${row.original.row_types}`];
};
return (