Commit c58606b7 authored by tom's avatar tom

tooltip for reorg blocks

parent cfd4c7e7
...@@ -28,12 +28,14 @@ const BlocksTableItem = ({ data, isPending }: Props) => { ...@@ -28,12 +28,14 @@ const BlocksTableItem = ({ data, isPending }: Props) => {
<Td fontSize="sm"> <Td fontSize="sm">
<Flex columnGap={ 2 } alignItems="center"> <Flex columnGap={ 2 } alignItems="center">
{ isPending && <Spinner size="sm" color="blue.500" emptyColor={ spinnerEmptyColor } flexShrink={ 0 }/> } { isPending && <Spinner size="sm" color="blue.500" emptyColor={ spinnerEmptyColor } flexShrink={ 0 }/> }
<Tooltip isDisabled={ data.type !== 'reorg' } label="Chain reorganizations">
<Link <Link
fontWeight={ 600 } fontWeight={ 600 }
href={ link('block_index', { id: String(data.height) }) } href={ link('block_index', { id: String(data.height) }) }
> >
{ data.height } { data.height }
</Link> </Link>
</Tooltip>
</Flex> </Flex>
<Text variant="secondary" mt={ 2 } fontWeight={ 400 }>{ dayjs(data.timestamp).fromNow() }</Text> <Text variant="secondary" mt={ 2 } fontWeight={ 400 }>{ dayjs(data.timestamp).fromNow() }</Text>
</Td> </Td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment