feat: optimize view form.

This commit is contained in:
Ahmed Bouhuolia
2020-04-13 22:17:53 +02:00
parent 2e7e18bb97
commit fb6b31d922
14 changed files with 243 additions and 105 deletions

View File

@@ -121,18 +121,21 @@ function AccountsDataTable({
</Tooltip>) : row.name;
},
className: 'account_name',
width: 300,
},
{
id: 'code',
Header: 'Code',
accessor: 'code',
className: 'code',
width: 100,
},
{
id: 'type',
Header: 'Type',
accessor: 'type.name',
className: 'type',
width: 120,
},
{
id: 'normal',
@@ -145,6 +148,7 @@ function AccountsDataTable({
return (<Icon icon={`arrow-${arrowDirection}`} />);
},
className: 'normal',
width: 75,
},
{
id: 'balance',
@@ -159,6 +163,7 @@ function AccountsDataTable({
</span>) :
(<span class="placeholder">--</span>);
},
width: 150,
},
{
id: 'actions',