Skip to content

Commit

Permalink
Show last 3 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Aug 9, 2024
1 parent 3b622bf commit b362256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Stats/LatestBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useBlockList } from '~queries/blocks'
import { useChainInfo } from '~queries/stats'

export const LatestBlocks = () => {
const blockListSize = 4
const blockListSize = 3

const { data: stats, isLoading: isLoadingStats } = useChainInfo()
const { data: blocks, isLoading: isLoadingBlocks } = useBlockList({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Stats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const Stats = () => {
<Flex direction={{ base: 'column', lg: 'row' }} alignItems='start' gap={cardSpacing}>
<VStack w={'full'} flex='3' spacing={cardSpacing}>
<ChainInfo />
<StatisticsCardWrapper flex='2' minH={'530px'} title={t('stats.latest_blocks')} icon={VscGraphLine}>
<StatisticsCardWrapper flex='2' title={t('stats.latest_blocks')} icon={VscGraphLine}>
<LatestBlocks />
</StatisticsCardWrapper>
</VStack>
Expand Down

0 comments on commit b362256

Please sign in to comment.