- feat: Highlight inactive accounts in data-table.

- feat: Separate accounts list and table order.
This commit is contained in:
Ahmed Bouhuolia
2020-07-04 15:30:24 +02:00
parent 273834b13e
commit 3fc390652d
13 changed files with 116 additions and 49 deletions

View File

@@ -95,7 +95,7 @@ function MakeJournalEntriesTable({
customers,
// #withAccounts
accounts,
accountsList,
// #ownPorps
onClickRemoveRow,
@@ -251,7 +251,7 @@ function MakeJournalEntriesTable({
rowClassNames={rowClassNames}
sticky={true}
payload={{
accounts,
accounts: accountsList,
errors: errors.entries || [],
updateData: handleUpdateData,
removeRow: handleRemoveRow,
@@ -286,8 +286,8 @@ function MakeJournalEntriesTable({
}
export default compose(
withAccounts(({ accounts }) => ({
accounts,
withAccounts(({ accountsList }) => ({
accountsList,
})),
withCustomers(({ customersItems }) => ({
customers: customersItems,