mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 11:31:02 +00:00
Make Tooltip as a function component with react hooks (#391)
* Refactor `Tooltip` into function component with hooks With using hooks, we don't need to maintain the checking in sCU and also don't need to assign the value of `ref` manually. * Show block number beside the tooltip instead of its children
This commit is contained in:
@@ -125,9 +125,8 @@ export class ConsensusBlock extends React.Component<ConsensusBlock.Props, {}> {
|
||||
className="legend"
|
||||
key={'block_row_' + this.props.height + '_legend'}
|
||||
>
|
||||
<Tooltip text={`Block number: ${this.props.height}`}>
|
||||
{this.displayBlockNumber()}
|
||||
</Tooltip>
|
||||
<Tooltip text={`Block number: ${this.props.height}`} />
|
||||
{this.displayBlockNumber()}
|
||||
</th>
|
||||
<th
|
||||
className="finalizedInfo"
|
||||
|
||||
Reference in New Issue
Block a user