Skip to content

Commit

Permalink
💄MaturityPoolsTable: restore date format, improve tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
sebipap committed May 22, 2024
1 parent 71ceb63 commit 0014413
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions components/asset/MaturityPool/MaturityPoolsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,18 @@ const MaturityPoolsTable: FC<MaturityPoolsTableProps> = ({ symbol }) => {
hover
>
<TableCell component="th" scope="row" width={120} sx={{ pl: 1.5 }}>
{parseTimestamp(maturity, "MMM DD, 'YY")}
{parseTimestamp(maturity)}
</TableCell>
<TableCell>
<Tooltip
title={`${t('Total deposited: ')}${totalDeposited}`}
title={`${t('Total deposited: ')}$${totalDeposited}`}
sx={{ display: 'flex', flexDirection: 'row', gap: 1 }}
placement="top"
arrow
>
<Typography>{toPercentage(depositAPR > minAPRValue ? depositAPR : undefined)}</Typography>
<Typography width="fit-content">
{toPercentage(depositAPR > minAPRValue ? depositAPR : undefined)}
</Typography>
</Tooltip>
</TableCell>
<TableCell>
Expand All @@ -105,12 +107,14 @@ const MaturityPoolsTable: FC<MaturityPoolsTableProps> = ({ symbol }) => {
</TableCell>
<TableCell>
<Tooltip
title={`${t('Total borrowed: ')}${totalBorrowed}`}
title={`${t('Total borrowed: ')}$${totalBorrowed}`}
sx={{ display: 'flex', flexDirection: 'row', gap: 1 }}
placement="top"
arrow
>
<Typography>{toPercentage(borrowAPR > minAPRValue ? borrowAPR : undefined)}</Typography>
<Typography width="fit-content">
{toPercentage(borrowAPR > minAPRValue ? borrowAPR : undefined)}
</Typography>
</Tooltip>
</TableCell>
<TableCell size="small" sx={{ cursor: 'default' }}>
Expand Down

0 comments on commit 0014413

Please sign in to comment.