Skip to content

Commit

Permalink
Revert "fix: apply 'tabular-nums' style only on some columns"
Browse files Browse the repository at this point in the history
This reverts commit 48ebd3d.
  • Loading branch information
belopash committed Jul 2, 2024
1 parent 7118c95 commit d53a6c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 26 deletions.
4 changes: 0 additions & 4 deletions src/components/Table/DashboardTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ export const DashboardTableBase = styled(Table)(({ theme }) => ({
minHeight: theme.spacing(8),
},

'& td.numeric': {
fontVariantNumeric: 'tabular-nums',
},

'& td:last-child, & th:last-child': {
paddingRight: theme.spacing(0),
},
Expand Down
10 changes: 4 additions & 6 deletions src/pages/DashboardPage/Workers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,13 @@ export function Workers() {
<TableCell>
<WorkerVersion worker={worker} />
</TableCell>
<TableCell className="numeric">{percentFormatter(worker.uptime90Days)}</TableCell>
<TableCell className="numeric">
{worker.apr != null ? percentFormatter(worker.apr) : '-'}
</TableCell>
<TableCell className="numeric">
<TableCell>{percentFormatter(worker.uptime90Days)}</TableCell>
<TableCell>{worker.apr != null ? percentFormatter(worker.apr) : '-'}</TableCell>
<TableCell>
{worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'}
</TableCell>
{/*<TableCell>{formatSqd(worker.totalDelegations.capacity, 0)}</TableCell>*/}
<TableCell className="numeric">
<TableCell>
<DelegationCapacity worker={worker} />
</TableCell>
<TableCell>{dateFormat(worker.createdAt)}</TableCell>
Expand Down
10 changes: 4 additions & 6 deletions src/pages/DelegationsPage/DelegationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,14 @@ export function MyDelegations() {
<TableCell>
<WorkerStatus worker={worker} />
</TableCell>
<TableCell className="numeric">
<TableCell>
{worker.stakerApr != null ? percentFormatter(worker.stakerApr) : '-'}
</TableCell>
<TableCell className="numeric">
<TableCell>
<DelegationCapacity worker={worker} />
</TableCell>
<TableCell className="numeric">
{tokenFormatter(fromSqd(worker.myDelegation), SQD_TOKEN)}
</TableCell>
<TableCell className="numeric">
<TableCell>{tokenFormatter(fromSqd(worker.myDelegation), SQD_TOKEN)}</TableCell>
<TableCell>
{tokenFormatter(fromSqd(worker.myTotalDelegationReward), SQD_TOKEN)}
</TableCell>
<TableCell className="pinned">
Expand Down
14 changes: 4 additions & 10 deletions src/pages/WorkersPage/WorkersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,10 @@ export function MyWorkers() {
<TableCell>
<WorkerStatus worker={worker} />
</TableCell>
<TableCell className="numeric">
{percentFormatter(worker.uptime24Hours)}
</TableCell>
<TableCell className="numeric">
{percentFormatter(worker.uptime90Days)}
</TableCell>
<TableCell className="numeric">
{worker.apr != null ? percentFormatter(worker.apr) : '-'}
</TableCell>
<TableCell className="numeric">
<TableCell>{percentFormatter(worker.uptime24Hours)}</TableCell>
<TableCell>{percentFormatter(worker.uptime90Days)}</TableCell>
<TableCell>{worker.apr != null ? percentFormatter(worker.apr) : '-'}</TableCell>
<TableCell>
{tokenFormatter(
fromSqd(worker.claimableReward).plus(fromSqd(worker.claimedReward)),
SQD_TOKEN,
Expand Down

0 comments on commit d53a6c1

Please sign in to comment.