Skip to content

Commit

Permalink
Merge pull request #88 from bcgov/SPR-187-Date-Spacing
Browse files Browse the repository at this point in the history
SPR-187 Date Spacing
  • Loading branch information
dbarkowsky authored Jul 17, 2023
2 parents b4e8d98 + 7a11330 commit fe0f3d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/components/custom/tables/ApprovalTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ApprovalTable = (props: ApprovalTableProps) => {
}}
>
<CustomTableCell sx={{ width: '2em' }}>{index + 1}</CustomTableCell>
<CustomTableCell sx={{ width: '12em' }}>
<CustomTableCell sx={{ minWidth: '10em', width: '20%' }}>
{!editable ? (
new Date(approval.approvalDate || Date.now()).toLocaleDateString()
) : (
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/custom/tables/PurchaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const PurchaseTable = (props: PurchaseTableProps) => {
>
<CustomTableCell sx={{ width: '40px' }}>{index + 1}</CustomTableCell>
<CustomTableCell>{`${purchase.supplier}`}</CustomTableCell>
<CustomTableCell sx={{ width: '150px' }}>
<CustomTableCell sx={{ minWidth: '10em', width: '15%' }}>
{new Date(purchase.purchaseDate).toLocaleDateString()}
</CustomTableCell>
<CustomTableCell>{`$ ${purchase.cost.toFixed(2)}`}</CustomTableCell>
Expand Down

0 comments on commit fe0f3d2

Please sign in to comment.