Skip to content

Commit

Permalink
restrict if in canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat committed Jan 19, 2025
1 parent 5d96075 commit af30d79
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/app/src/library/ValidatorList/ValidatorItem/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ export const Default = ({
<Labels className={displayFor}>
<CopyAddress address={address} />
{toggleFavorites && <FavoriteValidator address={address} />}
<Metrics
address={address}
display={getIdentityDisplay(
validatorIdentities[address],
validatorSupers[address]
)}
/>
{/* restrict opening modal within a canvas */}
{displayFor === 'default' && (
<Metrics
address={address}
display={getIdentityDisplay(
validatorIdentities[address],
validatorSupers[address]
)}
/>
)}
{displayFor === 'default' && showMenu && (
<div className="label">
<button type="button" onClick={(ev) => toggleMenu(ev)}>
Expand Down

0 comments on commit af30d79

Please sign in to comment.