Small tip-related tweaks (#3536)
This commit is contained in:
parent
12461fccb3
commit
a425e81f0e
@ -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
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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]);
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -61,7 +61,7 @@ function Tips ({ className = '', defaultId, hashes, isMember, members, onSelectT
|
||||
[],
|
||||
[],
|
||||
[undefined, 'badge media--1700'],
|
||||
[undefined, 'badge'],
|
||||
[],
|
||||
[undefined, 'mini media--1700']
|
||||
]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user