feat: optimize the style of bank account transactions tables

This commit is contained in:
Ahmed Bouhuolia
2024-09-04 13:59:13 +02:00
parent e3532098b2
commit c76ce09191
27 changed files with 120 additions and 201 deletions

View File

@@ -1,7 +1,9 @@
// @ts-nocheck
import React from 'react';
import clsx from 'classnames';
import { Classes } from '@blueprintjs/core';
import { Group, Icon } from '@/components';
import { getColumnWidth } from '@/utils';
import React from 'react';
import { useRecognizedTransactionsBoot } from './RecognizedTransactionsTableBoot';
const getReportColWidth = (data, accessor, headerText) => {
@@ -28,10 +30,6 @@ const recognizeAccessor = (transaction) => {
);
};
const descriptionAccessor = (transaction) => {
return <span style={{ color: '#5F6B7C' }}>{transaction.description}</span>;
};
/**
* Retrieve uncategorized transactions columns table.
*/
@@ -59,7 +57,8 @@ export function useUncategorizedTransactionsColumns() {
},
{
Header: 'Description',
accessor: descriptionAccessor,
accessor: 'description',
className: clsx(Classes.TEXT_MUTED),
textOverview: true,
},
{
@@ -82,12 +81,14 @@ export function useUncategorizedTransactionsColumns() {
accessor: 'formatted_deposit_amount',
align: 'right',
width: depositWidth,
money: true
},
{
Header: 'Withdrawal',
accessor: 'formatted_withdrawal_amount',
align: 'right',
width: withdrawalWidth,
money: true
},
],
[],