fix(style): Journal Entries.

This commit is contained in:
elforjani3
2021-08-02 12:31:28 +02:00
parent c3bbbd072a
commit 752e39c98f
2 changed files with 20 additions and 0 deletions

View File

@@ -3,6 +3,8 @@ import { DataTable, Card } from 'components';
import intl from 'react-intl-universal'; import intl from 'react-intl-universal';
import moment from 'moment'; import moment from 'moment';
import 'style/pages/JournalEntries/List.scss';
/** /**
* Journal entries table. * Journal entries table.
*/ */
@@ -15,11 +17,13 @@ export default function JournalEntriesTable({ transactions }) {
accessor: ({ formatted_date }) => accessor: ({ formatted_date }) =>
moment(formatted_date).format('YYYY MMM DD'), moment(formatted_date).format('YYYY MMM DD'),
width: 140, width: 140,
className: 'date',
}, },
{ {
Header: intl.get('account_name'), Header: intl.get('account_name'),
accessor: 'account_name', accessor: 'account_name',
width: 140, width: 140,
className: 'account_name',
}, },
{ {
Header: intl.get('contact'), Header: intl.get('contact'),
@@ -30,11 +34,13 @@ export default function JournalEntriesTable({ transactions }) {
Header: intl.get('credit'), Header: intl.get('credit'),
accessor: ({ credit }) => credit.formatted_amount, accessor: ({ credit }) => credit.formatted_amount,
width: 100, width: 100,
className: 'credit',
}, },
{ {
Header: intl.get('debit'), Header: intl.get('debit'),
accessor: ({ debit }) => debit.formatted_amount, accessor: ({ debit }) => debit.formatted_amount,
width: 100, width: 100,
className: 'debit',
}, },
], ],
[], [],

View File

@@ -0,0 +1,14 @@
.datatable--journal-entries {
.table {
.tbody {
.tr .td {
min-height: 42px;
&.credit,
&.debit {
font-weight: 600;
}
}
}
}
}