Skip to content

Commit

Permalink
fixup! 5. Transactions page
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Oct 11, 2024
1 parent d91df5c commit 6d2f5ce
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ export const AccountTransactionTable: React.FC<TableProps> = ({
}
}, [entries, currency, openingBalance, closingBalance, activeFilters]);

const Date: RenderCell = ({ row }) => dateFormatShort(row.entryDate, locale);
const Date: RenderCell = ({ row }) => (
<Typography>{dateFormatShort(row.entryDate, locale)}</Typography>

Check warning on line 189 in src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx#L188-L189

Added lines #L188 - L189 were not covered by tests
);
const Category: RenderCell = ({ row }) => (
<Box>

Check warning on line 192 in src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx#L191-L192

Added lines #L191 - L192 were not covered by tests
<Typography sx={{ textWrap: 'wrap' }}>{row.categoryName}</Typography>
Expand All @@ -207,10 +209,18 @@ export const AccountTransactionTable: React.FC<TableProps> = ({
);
const Expenses: RenderCell = ({ row }) => {

Check warning on line 210 in src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx#L210

Added line #L210 was not covered by tests
if (row.type === FinancialAccountEntryTypeEnum.Debit) {
return currencyFormat(
formatNumber(row.expenseAmount),
row.currency,
locale,
return (

Check warning on line 212 in src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx#L212

Added line #L212 was not covered by tests
<Typography
sx={{
fontWeight: isBalanceRow(row.id) ? 'bold' : 'inherit',
}}
>
{currencyFormat(
formatNumber(row.expenseAmount),
row.currency,
locale,
)}
</Typography>
);
}
return '';

Check warning on line 226 in src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/Reports/FinancialAccountsReport/AccountTransactions/AccountTransactionTable/AccountTransactionTable.tsx#L226

Added line #L226 was not covered by tests
Expand Down

0 comments on commit 6d2f5ce

Please sign in to comment.