fix: financial report data tables.

This commit is contained in:
a.bouhuolia
2022-02-14 14:09:17 +02:00
parent 673808cceb
commit 7eacaa0660
10 changed files with 75 additions and 62 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import intl from 'react-intl-universal';
import { Button } from '@blueprintjs/core';
import { Icon, If } from 'components';
import { ForceWidth, FormattedMessage as T } from 'components';
import { FormattedMessage as T } from 'components';
import { getColumnWidth } from 'utils';
import { useGeneralLedgerContext } from './GeneralLedgerProvider';
@@ -23,12 +23,7 @@ export function useGeneralLedgerTableColumns() {
() => [
{
Header: intl.get('date'),
accessor: (row) => {
if (row.rowType === 'ACCOUNT_ROW') {
return <ForceWidth children={row.date} />;
}
return row.date;
},
accessor: 'date',
className: 'date',
width: 120,
},