mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
WIP Financial statements.
This commit is contained in:
@@ -121,16 +121,21 @@ export default function DataTable({
|
||||
|
||||
// Renders table row.
|
||||
const RenderRow = useCallback(({ style = {}, row }) => {
|
||||
prepareRow(row);
|
||||
prepareRow(row);
|
||||
const rowClasses = rowClassNames && rowClassNames(row.original);
|
||||
|
||||
return (
|
||||
<div {...row.getRowProps({ style })} className="tr">
|
||||
<div {...row.getRowProps({
|
||||
className: classnames('tr', rowClasses),
|
||||
style
|
||||
})}>
|
||||
{row.cells.map((cell) => {
|
||||
return <div {...cell.getCellProps({
|
||||
className: classnames(cell.column.className || '', 'td'),
|
||||
})}>{ cell.render('Cell') }</div>
|
||||
})}
|
||||
</div>);
|
||||
}, [prepareRow]);
|
||||
}, [prepareRow, rowClassNames]);
|
||||
|
||||
// Renders virtualize circle table rows.
|
||||
const RenderVirtualizedRows = useCallback(({ index, style }) => {
|
||||
|
||||
Reference in New Issue
Block a user