diff --git a/packages/app-123code/src/Transfer.tsx b/packages/app-123code/src/Transfer.tsx index 301b0668a2..f7c2fa4782 100644 --- a/packages/app-123code/src/Transfer.tsx +++ b/packages/app-123code/src/Transfer.tsx @@ -27,7 +27,7 @@ export default class Transfer extends React.PureComponent {

transfer

-
+
{ tx='balances.transfer' /> -
+
Make a transfer from any account you control to another account. Transfer fees and per-transaction fees apply and will be calculated upon submission.
diff --git a/packages/app-accounts/src/Backup.tsx b/packages/app-accounts/src/Backup.tsx index 7e3ac2fe24..0f0c04fca9 100644 --- a/packages/app-accounts/src/Backup.tsx +++ b/packages/app-accounts/src/Backup.tsx @@ -25,16 +25,10 @@ type State = { }; class Backup extends React.PureComponent { - state: State; - - constructor (props: Props) { - super(props); - - this.state = { - isPassValid: false, - password: '' - }; - } + state: State = { + isPassValid: false, + password: '' + }; render () { return ( diff --git a/packages/app-accounts/src/ChangePass.tsx b/packages/app-accounts/src/ChangePass.tsx index 0c8216ac9c..51cf7b2034 100644 --- a/packages/app-accounts/src/ChangePass.tsx +++ b/packages/app-accounts/src/ChangePass.tsx @@ -26,18 +26,12 @@ type State = { }; class ChangePass extends React.PureComponent { - state: State; - - constructor (props: Props) { - super(props); - - this.state = { - isNewValid: false, - isOldValid: false, - newPass: '', - oldPass: '' - }; - } + state: State = { + isNewValid: false, + isOldValid: false, + newPass: '', + oldPass: '' + }; render () { return ( diff --git a/packages/app-accounts/src/Restore.tsx b/packages/app-accounts/src/Restore.tsx index 696f71fdb2..6cf59becde 100644 --- a/packages/app-accounts/src/Restore.tsx +++ b/packages/app-accounts/src/Restore.tsx @@ -25,18 +25,12 @@ type State = { }; class Restore extends React.PureComponent { - state: State; - - constructor (props: Props) { - super(props); - - this.state = { - isFileValid: false, - isPassValid: false, - json: null, - password: '' - }; - } + state: State = { + isFileValid: false, + isPassValid: false, + json: null, + password: '' + }; render () { const { t } = this.props; diff --git a/packages/app-accounts/src/index.tsx b/packages/app-accounts/src/index.tsx index 5e0ee4e36a..c6585623c0 100644 --- a/packages/app-accounts/src/index.tsx +++ b/packages/app-accounts/src/index.tsx @@ -27,7 +27,7 @@ type Props = AppProps & I18nProps & { type State = { hidden: Array, - items: Array + tabs: Array }; class AccountsApp extends React.PureComponent { @@ -43,7 +43,7 @@ class AccountsApp extends React.PureComponent { this.state = { ...baseState, - items: [ + tabs: [ { name: 'edit', text: t('Edit account') @@ -72,8 +72,10 @@ class AccountsApp extends React.PureComponent { } static hideEditState () { + // Hide vanity as well - since the route order and matching changes, the + // /create/:seed route become problematic, so don't allow that option return { - hidden: ['edit'] + hidden: ['edit', 'vanity'] }; } @@ -93,7 +95,7 @@ class AccountsApp extends React.PureComponent { render () { const { basePath } = this.props; - const { hidden, items } = this.state; + const { hidden, tabs } = this.state; const renderCreator = this.renderComponent(Creator); return ( @@ -102,7 +104,7 @@ class AccountsApp extends React.PureComponent {