Badge for pool nominators (#7470)

This commit is contained in:
Jaco 2022-04-27 16:49:49 +02:00 committed by GitHub
parent 15f4d80ede
commit 83f62196c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ import type { SortedTargets } from '../../types';
import React, { useCallback, useContext, useMemo } from 'react';
import { AddressSmall, Menu, Popup, StakingRedeemable, StakingUnbonding, StatusContext } from '@polkadot/react-components';
import { AddressSmall, Badge, Menu, Popup, StakingRedeemable, StakingUnbonding, StatusContext } from '@polkadot/react-components';
import { useApi, useToggle } from '@polkadot/react-hooks';
import { FormatBalance } from '@polkadot/react-query';
import { BN, formatNumber } from '@polkadot/util';
@ -131,6 +131,10 @@ function Pool ({ accountId, className, info: { bonded: { points, roles }, metada
)}
</td>
<td className='button'>
<Badge
color={isNominator ? 'green' : 'transparent'}
icon='hand-paper'
/>
{isBondOpen && (
<BondExtra
controllerId={accountId}