Change icon for oversubscribed (#3755)

This commit is contained in:
Jaco Greeff 2020-09-24 10:55:37 +02:00 committed by GitHub
parent aafe2d9b43
commit df17c2e883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,6 @@
import React from 'react';
import styled from 'styled-components';
import { Badge, Icon } from '@polkadot/react-components';
import { useApi } from '@polkadot/react-hooks';
import { useTranslation } from './translate';
@ -14,7 +13,6 @@ interface Props {
function Ledgend ({ className }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const { api } = useApi();
return (
<div className={className}>
@ -49,7 +47,7 @@ function Ledgend ({ className }: Props): React.ReactElement<Props> {
<span>
<Badge
color='red'
info={api.consts.staking?.maxNominatorRewardedPerValidator?.toString() || '64'}
icon='balance-scale-right'
/>
{t('Oversubscribed')}
</span>

View File

@ -21,7 +21,7 @@ function MaxBadge ({ numNominators }: Props): React.ReactElement<Props> | null {
return (
<Badge
color='red'
info={max.toString()}
icon='balance-scale-right'
/>
);
}