mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: rowClassNames.
This commit is contained in:
@@ -25,7 +25,7 @@ export default function CustomersBalanceSummaryTable({
|
|||||||
const columns = useCustomersSummaryColumns();
|
const columns = useCustomersSummaryColumns();
|
||||||
|
|
||||||
const rowClassNames = (row) => {
|
const rowClassNames = (row) => {
|
||||||
return [`row-type--${row.original.rowTypes}`];
|
return [`row-type--${row.original.row_types}`];
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default function CustomersTransactionsTable({
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const rowClassNames = (row) => {
|
const rowClassNames = (row) => {
|
||||||
return [`row-type--${row.original.rowTypes}`];
|
return [`row-type--${row.original.row_types}`];
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export function useGeneralLedgerTableColumns() {
|
|||||||
return row.date;
|
return row.date;
|
||||||
},
|
},
|
||||||
className: 'date',
|
className: 'date',
|
||||||
textOverview: true,
|
// textOverview: true,
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default function InventoryItemDetailsTable({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const rowClassNames = (row) => {
|
const rowClassNames = (row) => {
|
||||||
return [`row-type--${row.original.rowTypes}`];
|
return [`row-type--${row.original.row_types}`];
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const columnsMapper = (data, index, column) => ({
|
|||||||
id: column.key,
|
id: column.key,
|
||||||
key: column.key,
|
key: column.key,
|
||||||
Header: column.label,
|
Header: column.label,
|
||||||
// Cell: CellForceWidth,
|
Cell: CellForceWidth,
|
||||||
accessor: `cells[${index}].value`,
|
accessor: `cells[${index}].value`,
|
||||||
forceWidthAccess: `cells[0].value`,
|
forceWidthAccess: `cells[0].value`,
|
||||||
className: column.key,
|
className: column.key,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default function VendorsBalanceSummaryTable({
|
|||||||
const columns = useVendorsBalanceColumns();
|
const columns = useVendorsBalanceColumns();
|
||||||
|
|
||||||
const rowClassNames = (row) => {
|
const rowClassNames = (row) => {
|
||||||
return [`row-type--${row.original.rowTypes}`];
|
return [`row-type--${row.original.row_types}`];
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export default function VendorsTransactionsTable({
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const rowClassNames = (row) => {
|
const rowClassNames = (row) => {
|
||||||
return [`row-type--${row.original.rowTypes}`];
|
return [`row-type--${row.original.row_types}`];
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -10,7 +10,11 @@
|
|||||||
}
|
}
|
||||||
.tbody {
|
.tbody {
|
||||||
.tr:not(.no-results) {
|
.tr:not(.no-results) {
|
||||||
&.row-type--CASH_END_PERIOD{
|
// &.row-type--AGGREGATE,
|
||||||
|
&.row-type--ACCOUNTS {
|
||||||
|
border-top: 1px solid #bbb;
|
||||||
|
}
|
||||||
|
&.row-type--CASH_END_PERIOD {
|
||||||
border-bottom: 3px double #333;
|
border-bottom: 3px double #333;
|
||||||
}
|
}
|
||||||
.td {
|
.td {
|
||||||
@@ -30,7 +34,7 @@
|
|||||||
|
|
||||||
.tr.is-expanded {
|
.tr.is-expanded {
|
||||||
.td.total,
|
.td.total,
|
||||||
.td.date-period{
|
.td.date-period {
|
||||||
.cell-inner {
|
.cell-inner {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
}
|
}
|
||||||
.tbody {
|
.tbody {
|
||||||
.tr:not(.no-results) {
|
.tr:not(.no-results) {
|
||||||
|
&.row-type--CUSTOMER,
|
||||||
|
&.row-type--VENDOR {
|
||||||
|
border-top: 1px solid #BBB
|
||||||
|
}
|
||||||
.td {
|
.td {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
padding-top: 0.4rem;
|
padding-top: 0.4rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user