Skip to content

Commit

Permalink
Merge pull request blockscout#1153 from blockscout/latest-block-fix
Browse files Browse the repository at this point in the history
fix last block layout + tx additional info fix
  • Loading branch information
isstuev authored Sep 8, 2023
2 parents e6ebf07 + 4e2f3c2 commit 23ad283
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mocks/blocks/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const base: Block = {
type: 'POA Mania Reward',
},
{
reward: '1026853607500000000',
reward: '1026853607510000000',
type: 'Validator Reward',
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/home/LatestBlocksItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const LatestBlocksItem = ({ block, h, isLoading }: Props) => {
{ !config.features.rollup.isEnabled && !config.UI.views.block.hiddenFields?.nonce && (
<>
<Skeleton isLoaded={ !isLoading }>Reward</Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary"><span>{ totalReward.toFixed() }</span></Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary"><span>{ totalReward.dp(10).toFixed() }</span></Skeleton>
<Skeleton isLoaded={ !isLoading } textTransform="capitalize">{ getNetworkValidatorTitle() }</Skeleton>
<AddressEntity
address={ block.miner }
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ui/txs/TxAdditionalInfoContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const TxAdditionalInfoContent = ({ tx }: { tx: Transaction }) => {
currency={ config.chain.currency.symbol }
exchangeRate={ tx.exchange_rate }
accuracyUsd={ 2 }
flexWrap="wrap"
rowGap={ 0 }
/>
</Flex>
</Box>
Expand Down

0 comments on commit 23ad283

Please sign in to comment.