feat: remove SET_DASHBOARD_REQUEST_LOADING reducer.

feat: fix dropdown filter.
feat: fix fetch resource data.
This commit is contained in:
Ahmed Bouhuolia
2020-10-20 19:58:24 +02:00
parent 00ba1bb75e
commit 322af97d77
51 changed files with 1160 additions and 1009 deletions

View File

@@ -51,11 +51,10 @@ function NormalCell({ cell }) {
function BalanceCell({ cell }) {
const account = cell.row.original;
const { balance = null } = account;
return balance ? (
return (account.amount) ? (
<span>
<Money amount={balance.amount} currency={balance.currency_code} />
<Money amount={account.amount} currency={'USD'} />
</span>
) : (
<span class="placeholder"></span>
@@ -245,7 +244,7 @@ function AccountsDataTable({
{
id: 'balance',
Header: formatMessage({ id: 'balance' }),
accessor: 'balance',
accessor: 'amount',
Cell: BalanceCell,
width: 150,
},
@@ -268,11 +267,7 @@ function AccountsDataTable({
);
const selectionColumn = useMemo(
() => ({
minWidth: 40,
width: 40,
maxWidth: 40,
}),
() => ({ minWidth: 45, width: 45, maxWidth: 45 }),
[],
);