diff --git a/packages/app-staking/src/Actions/Account/index.tsx b/packages/app-staking/src/Actions/Account/index.tsx index 171d15264c..a3667276fb 100644 --- a/packages/app-staking/src/Actions/Account/index.tsx +++ b/packages/app-staking/src/Actions/Account/index.tsx @@ -144,13 +144,14 @@ class Account extends React.PureComponent { return ( )} - label={t('stash')} + // label={t('stash')} type='account' value={stashId} withAddressOrName @@ -177,15 +178,16 @@ class Account extends React.PureComponent { {this.renderSetRewardDestination()} {this.renderSetSessionAccount()} {this.renderValidate()} -
+
{controllerId && (
)} @@ -222,21 +224,21 @@ class Account extends React.PureComponent { withValidatorPrefs={isStashValidating} />
- {nominees && !!nominees.length && ( -
- - {nominees.map((nomineeId, index): React.ReactNode => ( - - ))} -
- )}
+ {nominees && !!nominees.length && ( +
+ {t('Nominating {{count}}', { replace: { count: nominees.length } })} + {nominees.map((nomineeId, index): React.ReactNode => ( + + ))} +
+ )}
); } @@ -368,7 +370,7 @@ class Account extends React.PureComponent { // only show a "Bond Additional" button if this stash account actually doesn't bond everything already // staking_ledger.total gives the total amount that can be slashed (any active amount + what is being unlocked) - const canBondExtra = balances_all && balances_all.freeBalance.gtn(0); + const canBondExtra = balances_all?.freeBalance.gtn(0); return ( { export default withMulti( styled(Account as React.ComponentClass)` - display: flex; + .staking--Card { + display: flex; + } .staking--Accounts { flex: 3; @@ -581,6 +585,7 @@ export default withMulti( flex: 1; display: flex; flex-direction: column; + margin-top: -2.25rem; .staking--balances { div { @@ -591,22 +596,10 @@ export default withMulti( flex:0; } } - - .staking--Account-Nominee { - display: flex; - flex-direction: column; - justify-content: flex-end; - padding-top: 1em; - flex: 1; - } } - .staking--Account-Nominee { - text-align: left; - - .staking--label { - margin: 0 0 -.75rem 2.25rem; - } + .staking--Account-Nominations { + margin-top: 1em; } .ui--Row-buttons .ui--Button-Group { diff --git a/packages/react-components/src/AddressInfo.tsx b/packages/react-components/src/AddressInfo.tsx index feab036ae9..76dd91334d 100644 --- a/packages/react-components/src/AddressInfo.tsx +++ b/packages/react-components/src/AddressInfo.tsx @@ -354,7 +354,7 @@ function AddressInfo (props: Props): React.ReactElement {
{renderBalances(props, allAccounts)} - {withHexSessionId && ( + {withHexSessionId && withHexSessionId[0] && ( <>