Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: add simple title popup w/ complete validator name
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Oct 31, 2019
1 parent fe8cdbb commit e87a991
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v2/components/UI/ValidatorName/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const ValidatorName = ({
to?: string,
}) => {
const classes = useStyles();
const displayText = name || pubkey;

return (
<div>
<Link to={to || `/validators/${pubkey}`} className={classes.root}>
<Avatar pubkey={pubkey} avatarUrl={avatar} />
<div>{name || pubkey}</div>
<div title={displayText}>{displayText}</div>
</Link>
</div>
);
Expand Down

0 comments on commit e87a991

Please sign in to comment.