Small tip-related tweaks (#3536)

This commit is contained in:
Jaco Greeff 2020-08-27 11:19:14 +02:00 committed by GitHub
parent 12461fccb3
commit a425e81f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 15 deletions

View File

@ -11,16 +11,12 @@ import { Option } from './types';
// value: The actual ss5Format value (as registered)
export default function create (t: TFunction): Option[] {
return [
// base defaults
{
info: 'default',
text: t<string>('ss58.default', 'Default for the connected node', { ns: 'apps-config' }),
value: -1
},
{
info: 'substrate',
text: t<string>('ss58.substrate', 'Substrate (generic)', { ns: 'apps-config' }),
value: 42
},
{
info: 'polkadot',
text: t<string>('ss58.polkadot', 'Polkadot (live)', { ns: 'apps-config' }),
@ -31,6 +27,17 @@ export default function create (t: TFunction): Option[] {
text: t<string>('ss58.kusama', 'Kusama (canary)', { ns: 'apps-config' }),
value: 2
},
{
info: 'substrate',
text: t<string>('ss58.substrate', 'Substrate (generic)', { ns: 'apps-config' }),
value: 42
},
// alphabetical extended chains
{
info: 'centrifuge',
text: t<string>('ss58.centrifuge', 'Centrifuge (live)', { ns: 'apps-config' }),
value: 36
},
{
info: 'edgeware',
text: t<string>('ss58.edgeware', 'Edgeware (live)', { ns: 'apps-config' }),
@ -40,11 +47,6 @@ export default function create (t: TFunction): Option[] {
info: 'subsocial',
text: t<string>('ss58.subsocial', 'Subsocial (live)', { ns: 'apps-config' }),
value: 28
},
{
info: 'centrifuge',
text: t<string>('ss58.centrifuge', 'Centrifuge (live)', { ns: 'apps-config' }),
value: 36
}
];
}

View File

@ -149,7 +149,7 @@ function Validator ({ allSlashes, canSelect, filterName, info, isNominated, isSe
<td className='number together'>{!bondOwn.isZero() && <FormatBalance value={bondOwn} />}</td>
<td className='number together media--1600'>{!bondOther.isZero() && <FormatBalance value={bondOther} />}</td>
<td className='number together'>{!rewardPayout.isZero() && <FormatBalance value={rewardPayout} />}</td>
<td className='badge'>
<td>
{(canSelect || isSelected) && (
<Checkbox
onChange={_toggleSelected}

View File

@ -140,7 +140,7 @@ function Targets ({ className = '', isInElection, ownStashes, targets: { avgStak
1,
(): void => _sort(header as 'rankComm')
]),
[undefined, 'badge'],
[],
[]
], [_sort, labels, sortBy, sorted, sortFromMax, t]);

View File

@ -108,7 +108,7 @@ function Tip ({ bestNumber, className = '', defaultId, hash, isMember, members,
)}
</td>
<TipReason hash={reason} />
<td className='start all'>
<td className='start'>
{tips.length !== 0 && (
<>
<Expander summary={t<string>('Tippers ({{count}})', { replace: { count: tips.length } })}>
@ -172,7 +172,7 @@ function Tip ({ bestNumber, className = '', defaultId, hash, isMember, members,
/>
)}
</td>
<td className='badge'>
<td>
<Checkbox
isDisabled={!isMember}
onChange={setMedianTip}

View File

@ -61,7 +61,7 @@ function Tips ({ className = '', defaultId, hashes, isMember, members, onSelectT
[],
[],
[undefined, 'badge media--1700'],
[undefined, 'badge'],
[],
[undefined, 'mini media--1700']
]);