Skip to content

Commit

Permalink
LAGO-347 fix table colors, columns width
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlago99 committed Sep 26, 2024
1 parent 0ff2d1a commit f99124e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/creditNote/CreditNotesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,13 @@ const CreditNotesTable = ({
key: 'totalAmountCents',
title: translate('text_62544c1db13ca10187214d85'),
content: ({ totalAmountCents, currency }) => (
<Typography variant="body" align="right" noWrap>
<Typography
className="font-medium"
variant="body"
color="grey700"
align="right"
noWrap
>
{intlFormatNumber(deserializeAmount(totalAmountCents || 0, currency), {
currencyDisplay: 'symbol',
currency,
Expand All @@ -336,18 +342,19 @@ const CreditNotesTable = ({
key: 'invoice.customer.displayName',
title: translate('text_63ac86d797f728a87b2f9fb3'),
content: (creditNote: CreditNoteTableItemFragment) => (
<CustomerColumn variant="body" color="grey700" noWrap>
<CustomerColumn variant="body" color="grey600" noWrap>
{creditNote.invoice?.customer.displayName}
</CustomerColumn>
),
maxSpace: true,
} as TableColumn<CreditNoteTableItemFragment>,
]
: []),
{
key: 'createdAt',
title: translate('text_62544c1db13ca10187214d7f'),
content: ({ createdAt }) => (
<Typography variant="body" color="grey700" noWrap>
<Typography variant="body" color="grey600" noWrap>
{customerTimezone
? formatDateToTZ(createdAt, customerTimezone)
: formatTimeOrgaTZ(createdAt)}
Expand Down

0 comments on commit f99124e

Please sign in to comment.