Skip to content

Commit

Permalink
💥 fix: Fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
caioaletroca committed Dec 4, 2024
1 parent 5713577 commit 3119951
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 169 deletions.
2 changes: 2 additions & 0 deletions locales/extracted/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
"ledgers.account.sheet.edit.title": "Edit {accountName}",
"ledgers.account.sheet.tabs.details": "Account Details",
"ledgers.accounts.createFirst": "Create first account",
"ledgers.accounts.showing": "Showing {count} {number, plural, =0 {accounts} one {account} other {accounts}}.",
"ledgers.accounts.subtitle": "{count} {count, plural, =0 {accounts found} one {account found} other {accounts found}}",
"ledgers.accounts.title": "Accounts",
"ledgers.assets.createButton": "Create your first Asset",
Expand Down Expand Up @@ -191,6 +192,7 @@
"ledgers.portfolio.sheet.title": "New Portfolio",
"ledgers.portfolio.subtitle": "{count} {count, plural, =0 {portfolios found} one {portfolio found} other {portfolios found}}",
"ledgers.portfolio.title": "Portfolios",
"ledgers.portfolios.showing": "Showing {count} {number, plural, =0 {portfolios} one {portifolio} other {portfolios}}.",
"ledgers.products.emptyResource": "You haven't created any Products yet",
"ledgers.products.sheet.description": "Fill in the details of the Product you want to create.",
"ledgers.products.sheet.edit.description": "View and edit product fields.",
Expand Down
6 changes: 4 additions & 2 deletions locales/extracted/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,7 @@
"notFound.backToHome": "Voltar para Home",
"ledgers.assets.showing": "Mostrando {count} {number, plural, =0 {ativos} one {ativo} other {ativos}}.",
"ledgers.products.showing": "Mostrando {count} {number, plural, =0 {produtos} one {produto} other {produtos}}.",
"ledgers.showing": "Mostrando {count} {number, plural, =0 {ledgers} one {ledger} other {ledgers}}."
}
"ledgers.showing": "Mostrando {count} {number, plural, =0 {ledgers} one {ledger} other {ledgers}}.",
"ledgers.accounts.showing": "Mostrando {count} {number, plural, =0 {contas} one {conta} other {contas}}.",
"ledgers.portfolios.showing": "Mostrando {count} {number, plural, =0 {portfólios} one {portfólio} other {portfólios}}."
}
37 changes: 27 additions & 10 deletions src/app/(routes)/ledgers/[id]/accounts/accounts-tab-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,33 @@ export const AccountsTabContent = () => {
</EntityBox.Actions>
</EntityBox.Root>

{accountsList && (
<AccountsDataTable
accounts={{ items: accountsList }}
isLoading={isAccountsLoading}
table={table}
handleEdit={handleEdit}
onDelete={handleDialogOpen}
refetch={refetchAccounts}
/>
)}
<EntityDataTable.Root>
{accountsList && (
<AccountsDataTable
accounts={{ items: accountsList }}
isLoading={isAccountsLoading}
table={table}
handleEdit={handleEdit}
onDelete={handleDialogOpen}
refetch={refetchAccounts}
/>
)}
<EntityDataTable.Footer>
<EntityDataTable.FooterText>
{intl.formatMessage(
{
id: 'ledgers.accounts.showing',
defaultMessage:
'Showing {count} {number, plural, =0 {accounts} one {account} other {accounts}}.'
},
{
number: accountsList?.length,
count: <span className="font-bold">{accountsList?.length}</span>
}
)}
</EntityDataTable.FooterText>
</EntityDataTable.Footer>
</EntityDataTable.Root>
</React.Fragment>
)
}
Loading

0 comments on commit 3119951

Please sign in to comment.