Browse Source

Bump dev, JSX prop rules (#2499)

Jaco Greeff 5 years ago
parent
commit
9fde464c11
100 changed files with 413 additions and 226 deletions
  1. 4 4
      package.json
  2. 1 1
      packages/apps/package.json
  3. 1 1
      packages/apps/src/SideBar/Item.tsx
  4. 2 2
      packages/apps/src/SideBar/index.tsx
  5. 1 1
      packages/apps/src/overlays/Accounts.tsx
  6. 3 0
      packages/page-123code/src/AccountSelector.tsx
  7. 4 1
      packages/page-123code/src/SummaryBar.tsx
  8. 14 8
      packages/page-accounts/src/Accounts/Account.tsx
  9. 6 1
      packages/page-accounts/src/Accounts/index.tsx
  10. 1 1
      packages/page-accounts/src/Accounts/modals/Backup.tsx
  11. 2 2
      packages/page-accounts/src/Accounts/modals/Create.tsx
  12. 1 1
      packages/page-accounts/src/Accounts/modals/Derive.tsx
  13. 5 5
      packages/page-accounts/src/Accounts/modals/Identity.tsx
  14. 1 1
      packages/page-accounts/src/Accounts/modals/Import.tsx
  15. 1 1
      packages/page-accounts/src/Accounts/modals/Qr.tsx
  16. 1 1
      packages/page-accounts/src/Accounts/modals/RecoverSetup.tsx
  17. 12 2
      packages/page-accounts/src/Accounts/modals/Transfer.tsx
  18. 14 8
      packages/page-accounts/src/Contacts/Address.tsx
  19. 6 1
      packages/page-accounts/src/Contacts/index.tsx
  20. 1 1
      packages/page-accounts/src/Contacts/modals/Create.tsx
  21. 2 2
      packages/page-accounts/src/Vanity/index.tsx
  22. 2 2
      packages/page-claims/src/index.tsx
  23. 1 1
      packages/page-contracts/package.json
  24. 2 2
      packages/page-contracts/src/ABI.tsx
  25. 3 3
      packages/page-contracts/src/Codes/Code.tsx
  26. 1 1
      packages/page-contracts/src/Codes/Upload.tsx
  27. 4 4
      packages/page-contracts/src/Codes/index.tsx
  28. 2 2
      packages/page-contracts/src/Contracts/Contract.tsx
  29. 3 3
      packages/page-contracts/src/Contracts/Outcome.tsx
  30. 1 1
      packages/page-contracts/src/Contracts/index.tsx
  31. 3 3
      packages/page-contracts/src/MessageSignature.tsx
  32. 3 3
      packages/page-contracts/src/Messages.tsx
  33. 2 2
      packages/page-contracts/src/Modal.tsx
  34. 2 2
      packages/page-contracts/src/RemoveABI.tsx
  35. 8 2
      packages/page-contracts/src/index.tsx
  36. 2 2
      packages/page-council/src/Motions/ProposeMotion.tsx
  37. 12 2
      packages/page-council/src/Overview/Candidates.tsx
  38. 6 1
      packages/page-council/src/Overview/Members.tsx
  39. 1 1
      packages/page-council/src/Overview/SubmitCandidacy.tsx
  40. 1 1
      packages/page-council/src/Overview/Vote.tsx
  41. 6 1
      packages/page-democracy/src/Overview/DispatchQueue.tsx
  42. 1 1
      packages/page-democracy/src/Overview/Fasttrack.tsx
  43. 7 2
      packages/page-democracy/src/Overview/PreImage.tsx
  44. 1 1
      packages/page-democracy/src/Overview/PreImageButton.tsx
  45. 6 1
      packages/page-democracy/src/Overview/Proposals.tsx
  46. 7 2
      packages/page-democracy/src/Overview/Propose.tsx
  47. 6 1
      packages/page-democracy/src/Overview/Referendums.tsx
  48. 2 2
      packages/page-democracy/src/Overview/Seconding.tsx
  49. 1 1
      packages/page-democracy/src/Overview/Voting.tsx
  50. 6 1
      packages/page-explorer/src/BlockHeaders.tsx
  51. 12 2
      packages/page-explorer/src/BlockInfo/ByHash.tsx
  52. 12 3
      packages/page-explorer/src/BlockInfo/Extrinsic.tsx
  53. 16 3
      packages/page-explorer/src/BlockInfo/Extrinsics.tsx
  54. 4 1
      packages/page-explorer/src/Forks.tsx
  55. 1 1
      packages/page-explorer/src/Query.tsx
  56. 4 4
      packages/page-explorer/src/index.tsx
  57. 1 1
      packages/page-extrinsics/src/Balance.tsx
  58. 9 4
      packages/page-extrinsics/src/Selection.tsx
  59. 4 4
      packages/page-generic-asset/src/AssetCard.tsx
  60. 4 4
      packages/page-generic-asset/src/Assets.tsx
  61. 14 4
      packages/page-generic-asset/src/Transfer.tsx
  62. 2 2
      packages/page-generic-asset/src/index.tsx
  63. 2 2
      packages/page-generic-asset/src/modals/Create.tsx
  64. 2 2
      packages/page-js/src/ActionButtons.tsx
  65. 4 1
      packages/page-js/src/Output.tsx
  66. 1 1
      packages/page-js/src/Playground.tsx
  67. 2 2
      packages/page-parachains/src/Overview/Register.tsx
  68. 1 1
      packages/page-parachains/src/Parachain/Deregister.tsx
  69. 1 1
      packages/page-parachains/src/Parachain/index.tsx
  70. 7 4
      packages/page-settings/src/Developer.tsx
  71. 6 6
      packages/page-settings/src/General.tsx
  72. 6 1
      packages/page-settings/src/Metadata/ChainColorIndicator.tsx
  73. 1 1
      packages/page-settings/src/Metadata/NetworkSpecs.tsx
  74. 1 1
      packages/page-settings/src/util.tsx
  75. 6 1
      packages/page-society/src/Overview/Members.tsx
  76. 8 3
      packages/page-staking/src/Actions/Account/BondExtra.tsx
  77. 2 2
      packages/page-staking/src/Actions/Account/Nominate.tsx
  78. 2 2
      packages/page-staking/src/Actions/Account/SetControllerAccount.tsx
  79. 2 2
      packages/page-staking/src/Actions/Account/SetRewardDestination.tsx
  80. 1 1
      packages/page-staking/src/Actions/Account/SetSessionKey.tsx
  81. 1 1
      packages/page-staking/src/Actions/Account/Unbond.tsx
  82. 1 1
      packages/page-staking/src/Actions/Account/Validate.tsx
  83. 10 10
      packages/page-staking/src/Actions/Account/index.tsx
  84. 2 2
      packages/page-staking/src/Actions/NewStake.tsx
  85. 7 2
      packages/page-staking/src/Actions/index.tsx
  86. 12 2
      packages/page-staking/src/Overview/CurrentList.tsx
  87. 6 1
      packages/page-staking/src/Targets/index.tsx
  88. 2 2
      packages/page-staking/src/index.tsx
  89. 1 1
      packages/page-storage/src/Selection/Consts.tsx
  90. 1 1
      packages/page-storage/src/Selection/Modules.tsx
  91. 9 9
      packages/page-storage/src/Selection/index.tsx
  92. 3 3
      packages/page-sudo/src/SetKey.tsx
  93. 2 2
      packages/page-sudo/src/Sudo.tsx
  94. 14 17
      packages/page-sudo/src/index.tsx
  95. 6 1
      packages/page-tech-comm/src/Overview/Members.tsx
  96. 2 2
      packages/page-tech-comm/src/Proposals/Propose.tsx
  97. 6 1
      packages/page-tech-comm/src/Proposals/index.tsx
  98. 1 1
      packages/page-toolbox/src/Rpc/Account.tsx
  99. 2 2
      packages/page-toolbox/src/Rpc/Selection.tsx
  100. 2 2
      packages/page-toolbox/src/Sign.tsx

+ 4 - 4
package.json

@@ -8,10 +8,10 @@
     "packages/*"
     "packages/*"
   ],
   ],
   "resolutions": {
   "resolutions": {
-    "@polkadot/api": "^1.9.0-beta.26",
-    "@polkadot/api-contract": "^1.9.0-beta.26",
+    "@polkadot/api": "^1.9.1",
+    "@polkadot/api-contract": "^1.9.1",
     "@polkadot/keyring": "^2.7.1",
     "@polkadot/keyring": "^2.7.1",
-    "@polkadot/types": "^1.9.0-beta.26",
+    "@polkadot/types": "^1.9.1",
     "@polkadot/util": "^2.7.1",
     "@polkadot/util": "^2.7.1",
     "@polkadot/util-crypto": "^2.7.1",
     "@polkadot/util-crypto": "^2.7.1",
     "babel-core": "^7.0.0-bridge.0",
     "babel-core": "^7.0.0-bridge.0",
@@ -36,7 +36,7 @@
     "@babel/core": "^7.9.0",
     "@babel/core": "^7.9.0",
     "@babel/register": "^7.9.0",
     "@babel/register": "^7.9.0",
     "@babel/runtime": "^7.9.2",
     "@babel/runtime": "^7.9.2",
-    "@polkadot/dev": "^0.51.9",
+    "@polkadot/dev": "^0.52.1",
     "@polkadot/ts": "^0.3.14",
     "@polkadot/ts": "^0.3.14",
     "@types/bn.js": "^4.11.6",
     "@types/bn.js": "^4.11.6",
     "@types/chart.js": "^2.9.16",
     "@types/chart.js": "^2.9.16",

+ 1 - 1
packages/apps/package.json

@@ -15,7 +15,7 @@
   "dependencies": {
   "dependencies": {
     "@babel/polyfill": "^7.8.7",
     "@babel/polyfill": "^7.8.7",
     "@babel/runtime": "^7.9.2",
     "@babel/runtime": "^7.9.2",
-    "@polkadot/dev": "^0.51.9",
+    "@polkadot/dev": "^0.52.1",
     "@polkadot/react-components": "0.40.0-beta.221",
     "@polkadot/react-components": "0.40.0-beta.221",
     "@polkadot/react-signer": "0.40.0-beta.221",
     "@polkadot/react-signer": "0.40.0-beta.221",
     "query-string": "^6.11.1"
     "query-string": "^6.11.1"

+ 1 - 1
packages/apps/src/SideBar/Item.tsx

@@ -105,8 +105,8 @@ function Item ({ route, isCollapsed, onClick }: Props): React.ReactElement<Props
       <span className='text'>{t(`sidebar.${name}`, i18n)}</span>
       <span className='text'>{t(`sidebar.${name}`, i18n)}</span>
       {count !== 0 && (
       {count !== 0 && (
         <Badge
         <Badge
-          isInline
           info={count}
           info={count}
+          isInline
           type='counter'
           type='counter'
         />
         />
       )}
       )}

+ 2 - 2
packages/apps/src/SideBar/index.tsx

@@ -49,8 +49,8 @@ function SideBar ({ className, collapse, handleResize, isCollapsed, isMenuOpen,
 
 
   return (
   return (
     <Responsive
     <Responsive
-      onUpdate={handleResize}
       className={classes(className, 'apps--SideBar-Wrapper', isCollapsed ? 'collapsed' : 'expanded')}
       className={classes(className, 'apps--SideBar-Wrapper', isCollapsed ? 'collapsed' : 'expanded')}
+      onUpdate={handleResize}
     >
     >
       <ChainImg
       <ChainImg
         className={`toggleImg ${isMenuOpen ? 'closed' : 'open delayed'}`}
         className={`toggleImg ${isMenuOpen ? 'closed' : 'open delayed'}`}
@@ -84,12 +84,12 @@ function SideBar ({ className, collapse, handleResize, isCollapsed, isMenuOpen,
                   <Item
                   <Item
                     isCollapsed={isCollapsed}
                     isCollapsed={isCollapsed}
                     key={route.name}
                     key={route.name}
-                    route={route}
                     onClick={
                     onClick={
                       route.Modal
                       route.Modal
                         ? _toggleModal(route.name)
                         ? _toggleModal(route.name)
                         : handleResize
                         : handleResize
                     }
                     }
+                    route={route}
                   />
                   />
                 )
                 )
                 : (
                 : (

+ 1 - 1
packages/apps/src/overlays/Accounts.tsx

@@ -32,8 +32,8 @@ function Accounts ({ className }: Props): React.ReactElement<Props> | null {
       <p>{t("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}</p>
       <p>{t("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}</p>
       <p>
       <p>
         <Link
         <Link
-          to='/accounts'
           onClick={toggleHidden}
           onClick={toggleHidden}
+          to='/accounts'
         >
         >
           {t('Create an account now.')}
           {t('Create an account now.')}
         </Link>
         </Link>

+ 3 - 0
packages/page-123code/src/AccountSelector.tsx

@@ -2,6 +2,9 @@
 // This software may be modified and distributed under the terms
 // This software may be modified and distributed under the terms
 // of the Apache-2.0 license. See the LICENSE file for details.
 // of the Apache-2.0 license. See the LICENSE file for details.
 
 
+// only here, needs to be available for the rest of the codebase
+/* eslint-disable react/jsx-max-props-per-line */
+
 import React, { useEffect, useState } from 'react';
 import React, { useEffect, useState } from 'react';
 import styled from 'styled-components';
 import styled from 'styled-components';
 import { AccountIndex, Bubble, InputAddress } from '@polkadot/react-components';
 import { AccountIndex, Bubble, InputAddress } from '@polkadot/react-components';

+ 4 - 1
packages/page-123code/src/SummaryBar.tsx

@@ -2,6 +2,9 @@
 // This software may be modified and distributed under the terms
 // This software may be modified and distributed under the terms
 // of the Apache-2.0 license. See the LICENSE file for details.
 // of the Apache-2.0 license. See the LICENSE file for details.
 
 
+// only here, needs to be available for the rest of the codebase
+/* eslint-disable react/jsx-max-props-per-line */
+
 import { DeriveStakingValidators } from '@polkadot/api-derive/types';
 import { DeriveStakingValidators } from '@polkadot/api-derive/types';
 import { Balance, BlockNumber } from '@polkadot/types/interfaces';
 import { Balance, BlockNumber } from '@polkadot/types/interfaces';
 
 
@@ -35,7 +38,7 @@ function SummaryBar (): React.ReactElement {
         {validators && (
         {validators && (
           <Bubble icon='chess queen' label='validators'>{
           <Bubble icon='chess queen' label='validators'>{
             validators.validators.map((accountId, index): React.ReactNode => (
             validators.validators.map((accountId, index): React.ReactNode => (
-              <IdentityIcon key={index} value={accountId} size={20} />
+              <IdentityIcon key={index} size={20} value={accountId} />
             ))
             ))
           }</Bubble>
           }</Bubble>
         )}
         )}

+ 14 - 8
packages/page-accounts/src/Accounts/Account.tsx

@@ -229,12 +229,13 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
       </td>
       </td>
       <td className='address'>
       <td className='address'>
         <AddressSmall
         <AddressSmall
+          onClickName={toggleEditName}
           overrideName={
           overrideName={
             isEditingName
             isEditingName
               ? (
               ? (
                 <Input
                 <Input
-                  className='name--input'
                   autoFocus
                   autoFocus
+                  className='name--input'
                   defaultValue={accName}
                   defaultValue={accName}
                   onBlur={_saveName}
                   onBlur={_saveName}
                   onChange={setAccName}
                   onChange={setAccName}
@@ -244,7 +245,6 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
               )
               )
               : undefined
               : undefined
           }
           }
-          onClickName={toggleEditName}
           toggle={isEditingName}
           toggle={isEditingName}
           value={address}
           value={address}
         />
         />
@@ -265,9 +265,9 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
         {isForgetOpen && (
         {isForgetOpen && (
           <Forget
           <Forget
             address={address}
             address={address}
-            onForget={_onForget}
             key='modal-forget-account'
             key='modal-forget-account'
             onClose={toggleForget}
             onClose={toggleForget}
+            onForget={_onForget}
           />
           />
         )}
         )}
         {isIdentityOpen && (
         {isIdentityOpen && (
@@ -313,21 +313,27 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
         {isEditingTags
         {isEditingTags
           ? (
           ? (
             <InputTags
             <InputTags
+              defaultValue={tags}
               onBlur={_saveTags}
               onBlur={_saveTags}
               onChange={_setTags}
               onChange={_setTags}
               onClose={_saveTags}
               onClose={_saveTags}
               openOnFocus
               openOnFocus
-              defaultValue={tags}
               searchInput={{ autoFocus: true }}
               searchInput={{ autoFocus: true }}
               value={tags}
               value={tags}
               withLabel={false}
               withLabel={false}
             />
             />
           )
           )
           : (
           : (
-            <div className='tags--toggle' onClick={toggleEditTags}>
+            <div
+              className='tags--toggle'
+              onClick={toggleEditTags}
+            >
               {tags.length
               {tags.length
                 ? tags.map((tag): React.ReactNode => (
                 ? tags.map((tag): React.ReactNode => (
-                  <Tag key={tag} label={tag} />
+                  <Tag
+                    key={tag}
+                    label={tag}
+                  />
                 ))
                 ))
                 : <label>{t('no tags')}</label>
                 : <label>{t('no tags')}</label>
               }
               }
@@ -368,9 +374,9 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
           }
           }
         >
         >
           <Menu
           <Menu
-            vertical
-            text
             onClick={toggleSettings}
             onClick={toggleSettings}
+            text
+            vertical
           >
           >
             <Menu.Item
             <Menu.Item
               disabled={!api.api.tx.identity?.setIdentity}
               disabled={!api.api.tx.identity?.setIdentity}

+ 6 - 1
packages/page-accounts/src/Accounts/index.tsx

@@ -128,7 +128,12 @@ function Overview ({ className, onStatusChange }: Props): React.ReactElement<Pro
             />
             />
           </div>
           </div>
         }>
         }>
-          <th className='start' colSpan={3}><h1>{t('accounts')}</h1></th>
+          <th
+            className='start'
+            colSpan={3}
+          >
+            <h1>{t('accounts')}</h1>
+          </th>
           <th>{t('type')}</th>
           <th>{t('type')}</th>
           <th className='start'>{t('tags')}</th>
           <th className='start'>{t('tags')}</th>
           <th>{t('transactions')}</th>
           <th>{t('transactions')}</th>

+ 1 - 1
packages/page-accounts/src/Accounts/modals/Backup.tsx

@@ -68,8 +68,8 @@ function Backup ({ address, onClose }: Props): React.ReactElement<Props> {
         doBackup={_doBackup}
         doBackup={_doBackup}
         isPassTouched={isPassTouched}
         isPassTouched={isPassTouched}
         isPassValid={isPassValid}
         isPassValid={isPassValid}
-        password={password}
         onChangePass={_onChangePass}
         onChangePass={_onChangePass}
+        password={password}
       />
       />
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <Button
         <Button

+ 2 - 2
packages/page-accounts/src/Accounts/modals/Create.tsx

@@ -214,8 +214,8 @@ function Create ({ className, onClose, onStatusChange, seed: propsSeed, type: pr
         <CreateConfirmation
         <CreateConfirmation
           address={address}
           address={address}
           name={name}
           name={name}
-          onCommit={_onCommit}
           onClose={_toggleConfirmation}
           onClose={_toggleConfirmation}
+          onCommit={_onCommit}
         />
         />
       )}
       )}
       <Modal.Content>
       <Modal.Content>
@@ -253,8 +253,8 @@ function Create ({ className, onClose, onStatusChange, seed: propsSeed, type: pr
             value={seed}
             value={seed}
           >
           >
             <Dropdown
             <Dropdown
-              isButton
               defaultValue={seedType}
               defaultValue={seedType}
+              isButton
               onChange={_selectSeedType}
               onChange={_selectSeedType}
               options={seedOpt}
               options={seedOpt}
             />
             />

+ 1 - 1
packages/page-accounts/src/Accounts/modals/Derive.tsx

@@ -148,8 +148,8 @@ function Derive ({ className, from, onClose }: Props): React.ReactElement {
         <CreateConfirmation
         <CreateConfirmation
           address={address}
           address={address}
           name={name}
           name={name}
-          onCommit={_onCommit}
           onClose={_toggleConfirmation}
           onClose={_toggleConfirmation}
+          onCommit={_onCommit}
         />
         />
       )}
       )}
       <Modal.Content>
       <Modal.Content>

+ 5 - 5
packages/page-accounts/src/Accounts/modals/Identity.tsx

@@ -111,8 +111,8 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement<P
           autoFocus
           autoFocus
           help={t('The name that will be displayed in your accounts list.')}
           help={t('The name that will be displayed in your accounts list.')}
           label={t('display name')}
           label={t('display name')}
-          onChange={setValDisplay}
           maxLength={32}
           maxLength={32}
+          onChange={setValDisplay}
           value={valDisplay}
           value={valDisplay}
         />
         />
         <WrapToggle
         <WrapToggle
@@ -123,8 +123,8 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement<P
             help={t('The legal name for this identity.')}
             help={t('The legal name for this identity.')}
             isDisabled={!hasLegal}
             isDisabled={!hasLegal}
             label={t('legal name')}
             label={t('legal name')}
-            onChange={setValLegal}
             maxLength={32}
             maxLength={32}
+            onChange={setValLegal}
             value={hasLegal ? valLegal : '<none>'}
             value={hasLegal ? valLegal : '<none>'}
           />
           />
         </WrapToggle>
         </WrapToggle>
@@ -136,8 +136,8 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement<P
             help={t('The email address associated with this identity.')}
             help={t('The email address associated with this identity.')}
             isDisabled={!hasEmail}
             isDisabled={!hasEmail}
             label={t('email')}
             label={t('email')}
-            onChange={setValEmail}
             maxLength={32}
             maxLength={32}
+            onChange={setValEmail}
             value={hasEmail ? valEmail : '<none>'}
             value={hasEmail ? valEmail : '<none>'}
           />
           />
         </WrapToggle>
         </WrapToggle>
@@ -149,8 +149,8 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement<P
             help={t('An URL that is linked to this identity.')}
             help={t('An URL that is linked to this identity.')}
             isDisabled={!hasWeb}
             isDisabled={!hasWeb}
             label={t('web')}
             label={t('web')}
-            onChange={setValWeb}
             maxLength={32}
             maxLength={32}
+            onChange={setValWeb}
             value={hasWeb ? valWeb : '<none>'}
             value={hasWeb ? valWeb : '<none>'}
           />
           />
         </WrapToggle>
         </WrapToggle>
@@ -174,8 +174,8 @@ function Identity ({ address, className, onClose }: Props): React.ReactElement<P
             help={t('a riot name linked to this identity')}
             help={t('a riot name linked to this identity')}
             isDisabled={!hasRiot}
             isDisabled={!hasRiot}
             label={t('riot name')}
             label={t('riot name')}
-            onChange={setValRiot}
             maxLength={32}
             maxLength={32}
+            onChange={setValRiot}
             value={hasRiot ? valRiot : '<none>'}
             value={hasRiot ? valRiot : '<none>'}
           />
           />
         </WrapToggle>
         </WrapToggle>

+ 1 - 1
packages/page-accounts/src/Accounts/modals/Import.tsx

@@ -45,8 +45,8 @@ class Import extends TxComponent<Props, State> {
             icon='sync'
             icon='sync'
             isDisabled={!isFileValid || !isPassValid}
             isDisabled={!isFileValid || !isPassValid}
             isPrimary
             isPrimary
-            onClick={this.onSave}
             label={t('Restore')}
             label={t('Restore')}
+            onClick={this.onSave}
           />
           />
         </Modal.Actions>
         </Modal.Actions>
       </Modal>
       </Modal>

+ 1 - 1
packages/page-accounts/src/Accounts/modals/Qr.tsx

@@ -93,8 +93,8 @@ function QrModal ({ className, onClose, onStatusChange }: Props): React.ReactEle
           icon='sign-in'
           icon='sign-in'
           isDisabled={!scanned || !isNameValid}
           isDisabled={!scanned || !isNameValid}
           isPrimary
           isPrimary
-          onClick={_onSave}
           label={t('Create')}
           label={t('Create')}
+          onClick={_onSave}
         />
         />
       </Modal.Actions>
       </Modal.Actions>
     </Modal>
     </Modal>

+ 1 - 1
packages/page-accounts/src/Accounts/modals/RecoverSetup.tsx

@@ -51,8 +51,8 @@ function RecoverSetup ({ address, className, onClose }: Props): React.ReactEleme
           available={availableHelpers}
           available={availableHelpers}
           availableLabel={t('available social recovery helpers')}
           availableLabel={t('available social recovery helpers')}
           help={t('The addresses that are able to help in recovery. You can select up to {{maxHelpers}} trusted helpers.', { replace: { maxHelpers: MAX_HELPERS } })}
           help={t('The addresses that are able to help in recovery. You can select up to {{maxHelpers}} trusted helpers.', { replace: { maxHelpers: MAX_HELPERS } })}
-          onChange={setHelpers}
           maxCount={MAX_HELPERS}
           maxCount={MAX_HELPERS}
+          onChange={setHelpers}
           value={helpers}
           value={helpers}
           valueLabel={t('trusted social recovery helpers')}
           valueLabel={t('trusted social recovery helpers')}
         />
         />

+ 12 - 2
packages/page-accounts/src/Accounts/modals/Transfer.tsx

@@ -52,7 +52,12 @@ function Transfer ({ className, onClose, recipientId: propRecipientId, senderId:
             help={t('The account you will send funds from.')}
             help={t('The account you will send funds from.')}
             isDisabled={!!propSenderId}
             isDisabled={!!propSenderId}
             label={t('send from account')}
             label={t('send from account')}
-            labelExtra={<Available label={transferrable} params={senderId} />}
+            labelExtra={
+              <Available
+                label={transferrable}
+                params={senderId}
+              />
+            }
             onChange={setSenderId}
             onChange={setSenderId}
             type='account'
             type='account'
           />
           />
@@ -61,7 +66,12 @@ function Transfer ({ className, onClose, recipientId: propRecipientId, senderId:
             help={t('Select a contact or paste the address you want to send funds to.')}
             help={t('Select a contact or paste the address you want to send funds to.')}
             isDisabled={!!propRecipientId}
             isDisabled={!!propRecipientId}
             label={t('send to address')}
             label={t('send to address')}
-            labelExtra={<Available label={transferrable} params={recipientId} />}
+            labelExtra={
+              <Available
+                label={transferrable}
+                params={recipientId}
+              />
+            }
             onChange={setRecipientId}
             onChange={setRecipientId}
             type='allPlus'
             type='allPlus'
           />
           />

+ 14 - 8
packages/page-accounts/src/Contacts/Address.tsx

@@ -165,12 +165,13 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
       </td>
       </td>
       <td className='address'>
       <td className='address'>
         <AddressSmall
         <AddressSmall
+          onClickName={_toggleEditName}
           overrideName={
           overrideName={
             isEditingName
             isEditingName
               ? (
               ? (
                 <Input
                 <Input
-                  className='name--input'
                   autoFocus
                   autoFocus
+                  className='name--input'
                   defaultValue={accName}
                   defaultValue={accName}
                   onBlur={_saveName}
                   onBlur={_saveName}
                   onChange={setAccName}
                   onChange={setAccName}
@@ -180,7 +181,6 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
               )
               )
               : undefined
               : undefined
           }
           }
-          onClickName={_toggleEditName}
           toggle={isEditingName}
           toggle={isEditingName}
           value={address}
           value={address}
         />
         />
@@ -189,10 +189,10 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
             {isForgetOpen && (
             {isForgetOpen && (
               <Forget
               <Forget
                 address={current.address}
                 address={current.address}
-                onForget={_onForget}
                 key='modal-forget-account'
                 key='modal-forget-account'
                 mode='address'
                 mode='address'
                 onClose={_toggleForget}
                 onClose={_toggleForget}
+                onForget={_onForget}
               />
               />
             )}
             )}
             {isTransferOpen && (
             {isTransferOpen && (
@@ -209,21 +209,27 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
         {isEditingTags
         {isEditingTags
           ? (
           ? (
             <InputTags
             <InputTags
+              defaultValue={tags}
               onBlur={_saveTags}
               onBlur={_saveTags}
               onChange={_setTags}
               onChange={_setTags}
               onClose={_saveTags}
               onClose={_saveTags}
               openOnFocus
               openOnFocus
-              defaultValue={tags}
               searchInput={{ autoFocus: true }}
               searchInput={{ autoFocus: true }}
               value={tags}
               value={tags}
               withLabel={false}
               withLabel={false}
             />
             />
           )
           )
           : (
           : (
-            <div className='tags--toggle' onClick={_toggleEditTags}>
+            <div
+              className='tags--toggle'
+              onClick={_toggleEditTags}
+            >
               {tags.length
               {tags.length
                 ? tags.map((tag): React.ReactNode => (
                 ? tags.map((tag): React.ReactNode => (
-                  <Tag key={tag} label={tag} />
+                  <Tag
+                    key={tag}
+                    label={tag}
+                  />
                 ))
                 ))
                 : <label>{t('no tags')}</label>
                 : <label>{t('no tags')}</label>
               }
               }
@@ -265,9 +271,9 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
           }
           }
         >
         >
           <Menu
           <Menu
-            vertical
-            text
             onClick={_toggleSettingPopup}
             onClick={_toggleSettingPopup}
+            text
+            vertical
           >
           >
             <Menu.Item
             <Menu.Item
               disabled={!isEditable}
               disabled={!isEditable}

+ 6 - 1
packages/page-accounts/src/Contacts/index.tsx

@@ -66,7 +66,12 @@ function Overview ({ className, onStatusChange }: Props): React.ReactElement<Pro
             />
             />
           </div>
           </div>
         }>
         }>
-          <th className='start' colSpan={2}><h1>{t('contacts')}</h1></th>
+          <th
+            className='start'
+            colSpan={2}
+          >
+            <h1>{t('contacts')}</h1>
+          </th>
           <th className='start'>{t('tags')}</th>
           <th className='start'>{t('tags')}</th>
           <th>{t('transactions')}</th>
           <th>{t('transactions')}</th>
           <th>{t('balances')}</th>
           <th>{t('balances')}</th>

+ 1 - 1
packages/page-accounts/src/Contacts/modals/Create.tsx

@@ -109,8 +109,8 @@ function Create ({ onClose, onStatusChange }: Props): React.ReactElement<Props>
           icon='save'
           icon='save'
           isDisabled={!isValid}
           isDisabled={!isValid}
           isPrimary
           isPrimary
-          onClick={_onCommit}
           label={t('Save')}
           label={t('Save')}
+          onClick={_onCommit}
         />
         />
       </Modal.Actions>
       </Modal.Actions>
     </Modal>
     </Modal>

+ 2 - 2
packages/page-accounts/src/Vanity/index.tsx

@@ -101,12 +101,12 @@ class VanityApp extends TxComponent<Props, State> {
               : 'sign-in'
               : 'sign-in'
           }
           }
           isDisabled={!isMatchValid}
           isDisabled={!isMatchValid}
-          onClick={this.toggleStart}
           label={
           label={
             isRunning
             isRunning
               ? t('Stop generation')
               ? t('Stop generation')
               : t('Start generation')
               : t('Start generation')
           }
           }
+          onClick={this.toggleStart}
         />
         />
       </Button.Group>
       </Button.Group>
     );
     );
@@ -152,8 +152,8 @@ class VanityApp extends TxComponent<Props, State> {
             help={t('Should the search be case sensitive, e.g if you select "no" your search for "Some" may return addresses containing "somE" or "sOme"...')}
             help={t('Should the search be case sensitive, e.g if you select "no" your search for "Some" may return addresses containing "somE" or "sOme"...')}
             isDisabled={isRunning}
             isDisabled={isRunning}
             label={t('case sensitive')}
             label={t('case sensitive')}
-            options={BOOL_OPTIONS}
             onChange={this.onChangeCase}
             onChange={this.onChangeCase}
+            options={BOOL_OPTIONS}
             value={withCase}
             value={withCase}
           />
           />
         </div>
         </div>

+ 2 - 2
packages/page-claims/src/index.tsx

@@ -133,8 +133,8 @@ class ClaimsApp extends TxModal<Props, State> {
                   <Button
                   <Button
                     icon='sign-in'
                     icon='sign-in'
                     isPrimary
                     isPrimary
-                    onClick={this.setStep(Step.Sign)}
                     label={t('Continue')}
                     label={t('Continue')}
+                    onClick={this.setStep(Step.Sign)}
                   />
                   />
                 </Button.Group>
                 </Button.Group>
               )}
               )}
@@ -173,8 +173,8 @@ class ClaimsApp extends TxModal<Props, State> {
                       icon='sign-in'
                       icon='sign-in'
                       isDisabled={!accountId || !signature}
                       isDisabled={!accountId || !signature}
                       isPrimary
                       isPrimary
-                      onClick={this.setStep(Step.Claim)}
                       label={t('Confirm claim')}
                       label={t('Confirm claim')}
+                      onClick={this.setStep(Step.Claim)}
                     />
                     />
                   </Button.Group>
                   </Button.Group>
                 )}
                 )}

+ 1 - 1
packages/page-contracts/package.json

@@ -12,6 +12,6 @@
   "license": "Apache-2.0",
   "license": "Apache-2.0",
   "dependencies": {
   "dependencies": {
     "@babel/runtime": "^7.9.2",
     "@babel/runtime": "^7.9.2",
-    "@polkadot/api-contract": "^1.9.0-beta.26"
+    "@polkadot/api-contract": "^1.9.1"
   }
   }
 }
 }

+ 2 - 2
packages/page-contracts/src/ABI.tsx

@@ -130,15 +130,15 @@ class ABI extends React.PureComponent<Props, State> {
 
 
     return (
     return (
       <Labelled
       <Labelled
-        label={label}
         help={help}
         help={help}
+        label={label}
         withLabel={!!label}
         withLabel={!!label}
       >
       >
         <Messages
         <Messages
           contractAbi={contractAbi}
           contractAbi={contractAbi}
-          onRemove={onRemove || this.onRemove}
           isLabelled={!!label}
           isLabelled={!!label}
           isRemovable={!isDisabled}
           isRemovable={!isDisabled}
+          onRemove={onRemove || this.onRemove}
           onSelectConstructor={onSelectConstructor}
           onSelectConstructor={onSelectConstructor}
           withConstructors
           withConstructors
         />
         />

+ 3 - 3
packages/page-contracts/src/Codes/Code.tsx

@@ -67,8 +67,8 @@ class Code extends React.PureComponent<Props, State> {
           {contractAbi
           {contractAbi
             ? (
             ? (
               <Expander
               <Expander
-                onClick={this.toggleAbi}
                 isOpen={isAbiOpen}
                 isOpen={isAbiOpen}
+                onClick={this.toggleAbi}
                 summary={t('ABI')}
                 summary={t('ABI')}
               >
               >
                 {abi}
                 {abi}
@@ -87,9 +87,9 @@ class Code extends React.PureComponent<Props, State> {
     return (
     return (
       <>
       <>
         <Button
         <Button
+          icon='trash'
           isNegative
           isNegative
           onClick={this.toggleForget}
           onClick={this.toggleForget}
-          icon='trash'
           size='small'
           size='small'
           tooltip={t('Forget this code hash')}
           tooltip={t('Forget this code hash')}
         />
         />
@@ -124,8 +124,8 @@ class Code extends React.PureComponent<Props, State> {
           onForget={this.onForget}
           onForget={this.onForget}
         >
         >
           <CodeRow
           <CodeRow
-            isInline
             code={code || ''}
             code={code || ''}
+            isInline
           >
           >
             <p>{t('You are about to remove this code from your list of available code hashes. Once completed, should you need to access it again, you will have to manually add the code hash again.')}</p>
             <p>{t('You are about to remove this code from your list of available code hashes. Once completed, should you need to access it again, you will have to manually add the code hash again.')}</p>
             <p>{t('This operation does not remove the uploaded code WASM and ABI from the chain, nor any deployed contracts. The forget operation only limits your access to the code on this browser.')}</p>
             <p>{t('This operation does not remove the uploaded code WASM and ABI from the chain, nor any deployed contracts. The forget operation only limits your access to the code on this browser.')}</p>

+ 1 - 1
packages/page-contracts/src/Codes/Upload.tsx

@@ -78,8 +78,8 @@ class Upload extends ContractModal<Props, State> {
         isPrimary
         isPrimary
         label={t('Upload')}
         label={t('Upload')}
         onClick={this.toggleBusy(true)}
         onClick={this.toggleBusy(true)}
-        onSuccess={this.onSuccess}
         onFailed={this.toggleBusy(false)}
         onFailed={this.toggleBusy(false)}
+        onSuccess={this.onSuccess}
         params={[gasLimit, wasm]}
         params={[gasLimit, wasm]}
         tx={api.tx.contracts ? 'contracts.putCode' : 'contract.putCode'}
         tx={api.tx.contracts ? 'contracts.putCode' : 'contract.putCode'}
         withSpinner
         withSpinner

+ 4 - 4
packages/page-contracts/src/Codes/index.tsx

@@ -35,7 +35,6 @@ class Codes extends React.PureComponent<Props, State> {
     return (
     return (
       <>
       <>
         <CardGrid
         <CardGrid
-          emptyText={t('No code hashes available')}
           buttons={
           buttons={
             <Button.Group>
             <Button.Group>
               <Button
               <Button
@@ -51,12 +50,13 @@ class Codes extends React.PureComponent<Props, State> {
               />
               />
             </Button.Group>
             </Button.Group>
           }
           }
+          emptyText={t('No code hashes available')}
         >
         >
           {contracts.getAllCode().map((code): React.ReactNode => {
           {contracts.getAllCode().map((code): React.ReactNode => {
             return (
             return (
               <Code
               <Code
-                key={code.json.codeHash}
                 code={code}
                 code={code}
+                key={code.json.codeHash}
                 showDeploy={showDeploy}
                 showDeploy={showDeploy}
               />
               />
             );
             );
@@ -65,13 +65,13 @@ class Codes extends React.PureComponent<Props, State> {
         <Upload
         <Upload
           basePath={basePath}
           basePath={basePath}
           isNew
           isNew
-          onClose={this.hideUpload}
           isOpen={isUploadOpen}
           isOpen={isUploadOpen}
+          onClose={this.hideUpload}
         />
         />
         <Add
         <Add
           basePath={basePath}
           basePath={basePath}
-          onClose={this.hideAdd}
           isOpen={isAddOpen}
           isOpen={isAddOpen}
+          onClose={this.hideAdd}
         />
         />
       </>
       </>
     );
     );

+ 2 - 2
packages/page-contracts/src/Contracts/Contract.tsx

@@ -64,10 +64,10 @@ function Contract (props: Props): React.ReactElement<Props> | null {
       {isForgetOpen && (
       {isForgetOpen && (
         <Forget
         <Forget
           address={address.toString()}
           address={address.toString()}
-          mode='contract'
-          onForget={_onForget}
           key='modal-forget-contract'
           key='modal-forget-contract'
+          mode='contract'
           onClose={_toggleForget}
           onClose={_toggleForget}
+          onForget={_onForget}
         />
         />
       )}
       )}
       <AddressRow
       <AddressRow

+ 3 - 3
packages/page-contracts/src/Contracts/Outcome.tsx

@@ -25,9 +25,9 @@ function Outcome (props: Props): React.ReactElement<Props> | null {
       <div className='info'>
       <div className='info'>
         <AddressMini
         <AddressMini
           className='origin'
           className='origin'
+          isPadded={false}
           value={origin}
           value={origin}
           withAddress={false}
           withAddress={false}
-          isPadded={false}
         />
         />
         <MessageSignature
         <MessageSignature
           message={message}
           message={message}
@@ -41,14 +41,14 @@ function Outcome (props: Props): React.ReactElement<Props> | null {
         <Button
         <Button
           className='icon-button clear-btn'
           className='icon-button clear-btn'
           icon='close'
           icon='close'
-          size='mini'
           isPrimary
           isPrimary
           onClick={onClear}
           onClick={onClear}
+          size='mini'
         />
         />
       </div>
       </div>
       <Output
       <Output
-        isError={!isSuccess}
         className='output'
         className='output'
+        isError={!isSuccess}
         value={(output || '()').toString()}
         value={(output || '()').toString()}
         withCopy
         withCopy
         withLabel={false}
         withLabel={false}

+ 1 - 1
packages/page-contracts/src/Contracts/index.tsx

@@ -68,7 +68,6 @@ function Contracts (props: Props): React.ReactElement<Props> {
   return (
   return (
     <>
     <>
       <CardGrid
       <CardGrid
-        emptyText={t('No contracts available')}
         buttons={
         buttons={
           <Button.Group>
           <Button.Group>
             {hasCode && (
             {hasCode && (
@@ -88,6 +87,7 @@ function Contracts (props: Props): React.ReactElement<Props> {
             />
             />
           </Button.Group>
           </Button.Group>
         }
         }
+        emptyText={t('No contracts available')}
       >
       >
         {contracts.map((contract: ApiContract, index): React.ReactNode => (
         {contracts.map((contract: ApiContract, index): React.ReactNode => (
           <ContractCard
           <ContractCard

+ 3 - 3
packages/page-contracts/src/MessageSignature.tsx

@@ -91,15 +91,15 @@ function MessageSignature ({ message: { args, mutates, name, returnType }, param
       {mutates && (
       {mutates && (
         <>
         <>
           <Icon
           <Icon
-            data-tip
+            className="mutates"
             data-for={`mutates-${name}`}
             data-for={`mutates-${name}`}
+            data-tip
             name="database"
             name="database"
-            className="mutates"
           />
           />
           {withTooltip && (
           {withTooltip && (
             <Tooltip
             <Tooltip
-              trigger={`mutates-${name}`}
               text={t('Mutates contract state')}
               text={t('Mutates contract state')}
+              trigger={`mutates-${name}`}
             />
             />
           )}
           )}
         </>
         </>

+ 3 - 3
packages/page-contracts/src/Messages.tsx

@@ -56,8 +56,8 @@ function renderItem (props: Props, message: ContractABIMessage, index: number, a
 
 
   return (
   return (
     <div
     <div
-      key={name}
       className={classes('message', !onSelect && 'exempt-hover', asConstructor && 'constructor')}
       className={classes('message', !onSelect && 'exempt-hover', asConstructor && 'constructor')}
+      key={name}
     >
     >
       <div className='info'>
       <div className='info'>
         <MessageSignature
         <MessageSignature
@@ -137,9 +137,9 @@ function Messages (props: Props): React.ReactElement<Props> {
       {messages.map((_, index): React.ReactNode => renderMessage(props, index, t))}
       {messages.map((_, index): React.ReactNode => renderMessage(props, index, t))}
       {isRemovable && (
       {isRemovable && (
         <IconLink
         <IconLink
-          label={t('Remove ABI')}
-          icon='remove'
           className='remove-abi'
           className='remove-abi'
+          icon='remove'
+          label={t('Remove ABI')}
           onClick={onRemove}
           onClick={onRemove}
         />
         />
       )}
       )}

+ 2 - 2
packages/page-contracts/src/Modal.tsx

@@ -85,14 +85,14 @@ class ContractModal<P extends ContractModalProps, S extends ContractModalState>
             ? 'The ABI for the WASM code. Since we will be making a call into the code, the ABI is required and stored for future operations such as sending messages.'
             ? 'The ABI for the WASM code. Since we will be making a call into the code, the ABI is required and stored for future operations such as sending messages.'
             : 'The ABI for the WASM code. In this step it is optional, but setting it here simplifies the setup of contract instances.'
             : 'The ABI for the WASM code. In this step it is optional, but setting it here simplifies the setup of contract instances.'
         )}
         )}
+        isDisabled={isBusy}
+        isRequired={this.isContract}
         label={t(
         label={t(
           this.isContract
           this.isContract
             ? 'contract ABI'
             ? 'contract ABI'
             : 'contract ABI (optional)'
             : 'contract ABI (optional)'
         )}
         )}
         onChange={this.onAddAbi}
         onChange={this.onAddAbi}
-        isDisabled={isBusy}
-        isRequired={this.isContract}
       />
       />
     );
     );
   }
   }

+ 2 - 2
packages/page-contracts/src/RemoveABI.tsx

@@ -41,10 +41,10 @@ function RemoveABI ({ code, onClose, onRemove }: Props): React.ReactElement<Prop
       </Modal.Content>
       </Modal.Content>
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <Button
         <Button
+          icon='trash'
           isPrimary
           isPrimary
-          onClick={_onRemove}
           label={t('Remove')}
           label={t('Remove')}
-          icon='trash'
+          onClick={_onRemove}
         />
         />
       </Modal.Actions>
       </Modal.Actions>
     </Modal>
     </Modal>

+ 8 - 2
packages/page-contracts/src/index.tsx

@@ -89,8 +89,14 @@ class ContractsApp extends React.PureComponent<Props, State> {
           />
           />
         </header>
         </header>
         <Switch>
         <Switch>
-          <Route path={`${basePath}/code`} render={this.renderComponent(Codes)} />
-          <Route render={this.renderComponent(Contracts)} exact />
+          <Route
+            path={`${basePath}/code`}
+            render={this.renderComponent(Codes)}
+          />
+          <Route
+            exact
+            render={this.renderComponent(Contracts)}
+          />
         </Switch>
         </Switch>
         <Deploy
         <Deploy
           basePath={basePath}
           basePath={basePath}

+ 2 - 2
packages/page-council/src/Motions/ProposeMotion.tsx

@@ -73,9 +73,9 @@ class Propose extends TxModal<Props, State> {
 
 
     return (
     return (
       <Button
       <Button
+        icon='add'
         isDisabled={!isMember}
         isDisabled={!isMember}
         label={t('Propose motion')}
         label={t('Propose motion')}
-        icon='add'
         onClick={this.showModal}
         onClick={this.showModal}
       />
       />
     );
     );
@@ -89,9 +89,9 @@ class Propose extends TxModal<Props, State> {
       <>
       <>
         <InputNumber
         <InputNumber
           className='medium'
           className='medium'
-          label={t('threshold')}
           help={t('The minimum number of council votes required to approve this motion')}
           help={t('The minimum number of council votes required to approve this motion')}
           isError={!threshold || threshold.eqn(0) || threshold.gtn(members.length)}
           isError={!threshold || threshold.eqn(0) || threshold.gtn(members.length)}
+          label={t('threshold')}
           onChange={this.onChangeThreshold}
           onChange={this.onChangeThreshold}
           onEnter={this.sendTx}
           onEnter={this.sendTx}
           placeholder={
           placeholder={

+ 12 - 2
packages/page-council/src/Overview/Candidates.tsx

@@ -23,7 +23,12 @@ function Candidates ({ allVotes = {}, electionsInfo }: Props): React.ReactElemen
     <>
     <>
       <Table>
       <Table>
         <Table.Head>
         <Table.Head>
-          <th className='start' colSpan={2}><h1>{t('runners up')}</h1></th>
+          <th
+            className='start'
+            colSpan={2}
+          >
+            <h1>{t('runners up')}</h1>
+          </th>
           <th>{t('backing')}</th>
           <th>{t('backing')}</th>
         </Table.Head>
         </Table.Head>
         <Table.Body empty={electionsInfo && t('No runners up found')}>
         <Table.Body empty={electionsInfo && t('No runners up found')}>
@@ -39,7 +44,12 @@ function Candidates ({ allVotes = {}, electionsInfo }: Props): React.ReactElemen
       </Table>
       </Table>
       <Table>
       <Table>
         <Table.Head>
         <Table.Head>
-          <th className='start' colSpan={2}><h1>{t('candidates')}</h1></th>
+          <th
+            className='start'
+            colSpan={2}
+          >
+            <h1>{t('candidates')}</h1>
+          </th>
           <th>{t('backing')}</th>
           <th>{t('backing')}</th>
         </Table.Head>
         </Table.Head>
         <Table.Body empty={electionsInfo && t('No candidates found')}>
         <Table.Body empty={electionsInfo && t('No candidates found')}>

+ 6 - 1
packages/page-council/src/Overview/Members.tsx

@@ -23,7 +23,12 @@ function Members ({ allVotes = {}, className, electionsInfo, prime }: Props): Re
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={2}><h1>{t('members')}</h1></th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          <h1>{t('members')}</h1>
+        </th>
         <th>{t('backing')}</th>
         <th>{t('backing')}</th>
       </Table.Head>
       </Table.Head>
       <Table.Body empty={electionsInfo && t('No members found')}>
       <Table.Body empty={electionsInfo && t('No members found')}>

+ 1 - 1
packages/page-council/src/Overview/SubmitCandidacy.tsx

@@ -43,8 +43,8 @@ function SubmitCandidacy (): React.ReactElement {
         </Modal>
         </Modal>
       )}
       )}
       <Button
       <Button
-        label={t('Submit candidacy')}
         icon='add'
         icon='add'
+        label={t('Submit candidacy')}
         onClick={onOpen}
         onClick={onOpen}
       />
       />
     </>
     </>

+ 1 - 1
packages/page-council/src/Overview/Vote.tsx

@@ -75,9 +75,9 @@ class Vote extends TxModal<Props, State> {
 
 
     return (
     return (
       <Button
       <Button
+        icon='check'
         isDisabled={available.length === 0}
         isDisabled={available.length === 0}
         label={this.props.t('Vote')}
         label={this.props.t('Vote')}
-        icon='check'
         onClick={this.showModal}
         onClick={this.showModal}
       />
       />
     );
     );

+ 6 - 1
packages/page-democracy/src/Overview/DispatchQueue.tsx

@@ -23,7 +23,12 @@ function DispatchQueue ({ className }: Props): React.ReactElement<Props> | null
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={2}><h1>{t('dispatch queue')}</h1></th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          <h1>{t('dispatch queue')}</h1>
+        </th>
         <th>{t('enact')}</th>
         <th>{t('enact')}</th>
         <th colSpan={2}>&nbsp;</th>
         <th colSpan={2}>&nbsp;</th>
       </Table.Head>
       </Table.Head>

+ 1 - 1
packages/page-democracy/src/Overview/Fasttrack.tsx

@@ -87,10 +87,10 @@ function Fasttrack ({ imageHash, threshold }: Props): React.ReactElement<Props>
           <Modal.Actions onCancel={toggleFasttrack}>
           <Modal.Actions onCancel={toggleFasttrack}>
             <TxButton
             <TxButton
               accountId={accountId}
               accountId={accountId}
+              icon='fast forward'
               isDisabled={!accountId || !proposal || !memberThreshold}
               isDisabled={!accountId || !proposal || !memberThreshold}
               isPrimary
               isPrimary
               label={t('Fast track')}
               label={t('Fast track')}
-              icon='fast forward'
               onStart={toggleFasttrack}
               onStart={toggleFasttrack}
               params={[memberThreshold, proposal]}
               params={[memberThreshold, proposal]}
               tx='technicalCommittee.propose'
               tx='technicalCommittee.propose'

+ 7 - 2
packages/page-democracy/src/Overview/PreImage.tsx

@@ -50,7 +50,12 @@ function PreImage ({ className, isImminent: propsIsImminent, imageHash, onClose
         <InputAddress
         <InputAddress
           help={t('The account you want to register the preimage from')}
           help={t('The account you want to register the preimage from')}
           label={t('send from account')}
           label={t('send from account')}
-          labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={accountId} />}
+          labelExtra={
+            <Available
+              label={<span className='label'>{t('transferrable')}</span>}
+              params={accountId}
+            />
+          }
           onChange={setAccountId}
           onChange={setAccountId}
           type='account'
           type='account'
         />
         />
@@ -76,10 +81,10 @@ function PreImage ({ className, isImminent: propsIsImminent, imageHash, onClose
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <TxButton
         <TxButton
           accountId={accountId}
           accountId={accountId}
+          icon='add'
           isDisabled={!proposal || !accountId || !isMatched || !encodedProposal}
           isDisabled={!proposal || !accountId || !isMatched || !encodedProposal}
           isPrimary
           isPrimary
           label={t('Submit preimage')}
           label={t('Submit preimage')}
-          icon='add'
           onStart={onClose}
           onStart={onClose}
           params={[encodedProposal]}
           params={[encodedProposal]}
           tx={isImminent ? 'democracy.noteImminentPreimage' : 'democracy.notePreimage'}
           tx={isImminent ? 'democracy.noteImminentPreimage' : 'democracy.notePreimage'}

+ 1 - 1
packages/page-democracy/src/Overview/PreImageButton.tsx

@@ -31,8 +31,8 @@ function PreImageButton ({ imageHash, isImminent, withoutOr }: Props): React.Rea
       />
       />
       {isPreimageOpen && (
       {isPreimageOpen && (
         <PreImage
         <PreImage
-          isImminent={isImminent}
           imageHash={imageHash}
           imageHash={imageHash}
+          isImminent={isImminent}
           onClose={togglePreimage}
           onClose={togglePreimage}
         />
         />
       )}
       )}

+ 6 - 1
packages/page-democracy/src/Overview/Proposals.tsx

@@ -23,7 +23,12 @@ function Proposals ({ className }: Props): React.ReactElement<Props> {
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={2}><h1>{t('proposals')}</h1></th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          <h1>{t('proposals')}</h1>
+        </th>
         <th className='address'>{t('proposer')}</th>
         <th className='address'>{t('proposer')}</th>
         <th>{t('locked')}</th>
         <th>{t('locked')}</th>
         <th colSpan={3}>&nbsp;</th>
         <th colSpan={3}>&nbsp;</th>

+ 7 - 2
packages/page-democracy/src/Overview/Propose.tsx

@@ -35,7 +35,12 @@ function Propose ({ className, onClose }: Props): React.ReactElement<Props> {
         <InputAddress
         <InputAddress
           help={t('The account you want to register the proposal from')}
           help={t('The account you want to register the proposal from')}
           label={t('send from account')}
           label={t('send from account')}
-          labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={accountId} />}
+          labelExtra={
+            <Available
+              label={<span className='label'>{t('transferrable')}</span>}
+              params={accountId}
+            />
+          }
           onChange={setAccountId}
           onChange={setAccountId}
           type='account'
           type='account'
         />
         />
@@ -55,10 +60,10 @@ function Propose ({ className, onClose }: Props): React.ReactElement<Props> {
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <TxButton
         <TxButton
           accountId={accountId}
           accountId={accountId}
+          icon='add'
           isDisabled={!balance || balance.lten(0) || !isHashValid || !accountId}
           isDisabled={!balance || balance.lten(0) || !isHashValid || !accountId}
           isPrimary
           isPrimary
           label={t('Submit proposal')}
           label={t('Submit proposal')}
-          icon='add'
           onStart={onClose}
           onStart={onClose}
           params={[hash, balance]}
           params={[hash, balance]}
           tx='democracy.propose'
           tx='democracy.propose'

+ 6 - 1
packages/page-democracy/src/Overview/Referendums.tsx

@@ -23,7 +23,12 @@ function Referendums ({ className }: Props): React.ReactElement<Props> {
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={2}><h1>{t('referenda')}</h1></th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          <h1>{t('referenda')}</h1>
+        </th>
         <th>{t('remaining')}</th>
         <th>{t('remaining')}</th>
         <th>{t('activate')}</th>
         <th>{t('activate')}</th>
         <th>{t('aye')}</th>
         <th>{t('aye')}</th>

+ 2 - 2
packages/page-democracy/src/Overview/Seconding.tsx

@@ -54,10 +54,10 @@ function Seconding ({ depositors, image, proposalId }: Props): React.ReactElemen
           <Modal.Actions onCancel={toggleSeconding}>
           <Modal.Actions onCancel={toggleSeconding}>
             <TxButton
             <TxButton
               accountId={accountId}
               accountId={accountId}
+              icon='sign-in'
               isDisabled={!accountId || isDepositor}
               isDisabled={!accountId || isDepositor}
               isPrimary
               isPrimary
               label={t('Second')}
               label={t('Second')}
-              icon='sign-in'
               onStart={toggleSeconding}
               onStart={toggleSeconding}
               params={[proposalId]}
               params={[proposalId]}
               tx='democracy.second'
               tx='democracy.second'
@@ -66,8 +66,8 @@ function Seconding ({ depositors, image, proposalId }: Props): React.ReactElemen
         </Modal>
         </Modal>
       )}
       )}
       <Button
       <Button
-        label={t('Second')}
         icon='toggle off'
         icon='toggle off'
+        label={t('Second')}
         onClick={toggleSeconding}
         onClick={toggleSeconding}
       />
       />
     </>
     </>

+ 1 - 1
packages/page-democracy/src/Overview/Voting.tsx

@@ -92,8 +92,8 @@ function Voting ({ proposal, referendumId }: Props): React.ReactElement<Props> |
           </Modal.Content>
           </Modal.Content>
           <VoteActions
           <VoteActions
             accountId={accountId}
             accountId={accountId}
-            onClick={toggleVoting}
             isDisabled={isCurrentVote ? !balance : false}
             isDisabled={isCurrentVote ? !balance : false}
+            onClick={toggleVoting}
             params={
             params={
               isCurrentVote
               isCurrentVote
                 ? [referendumId, { Standard: { balance, vote: { aye, conviction } } }]
                 ? [referendumId, { Standard: { balance, vote: { aye, conviction } } }]

+ 6 - 1
packages/page-explorer/src/BlockHeaders.tsx

@@ -19,7 +19,12 @@ function BlockHeaders ({ headers }: Props): React.ReactElement<Props> {
   return (
   return (
     <Table>
     <Table>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={3}><h1>{t('recent blocks')}</h1></th>
+        <th
+          className='start'
+          colSpan={3}
+        >
+          <h1>{t('recent blocks')}</h1>
+        </th>
       </Table.Head>
       </Table.Head>
       <Table.Body empty={t('No blocks available')}>
       <Table.Body empty={t('No blocks available')}>
         {headers
         {headers

+ 12 - 2
packages/page-explorer/src/BlockInfo/ByHash.tsx

@@ -35,7 +35,12 @@ function BlockByHash ({ className, value }: Props): React.ReactElement<Props> {
     <div className={className}>
     <div className={className}>
       <Table isFixed>
       <Table isFixed>
         <Table.Head>
         <Table.Head>
-          <th className='start' colSpan={getHeader ? 1 : 6}><h1>{blockNumber ? formatNumber(blockNumber) : '...'}</h1></th>
+          <th
+            className='start'
+            colSpan={getHeader ? 1 : 6}
+          >
+            <h1>{blockNumber ? formatNumber(blockNumber) : '...'}</h1>
+          </th>
           {getHeader && (
           {getHeader && (
             <>
             <>
               <th className='start'>{t('hash')}</th>
               <th className='start'>{t('hash')}</th>
@@ -54,7 +59,12 @@ function BlockByHash ({ className, value }: Props): React.ReactElement<Props> {
               <td className='hash overflow'><Link to={`/explorer/query/${parentHash}`}>{parentHash}</Link></td>
               <td className='hash overflow'><Link to={`/explorer/query/${parentHash}`}>{parentHash}</Link></td>
               <td className='hash overflow'>{getHeader.extrinsicsRoot.toHex()}</td>
               <td className='hash overflow'>{getHeader.extrinsicsRoot.toHex()}</td>
               <td className='hash overflow'>{getHeader.stateRoot.toHex()}</td>
               <td className='hash overflow'>{getHeader.stateRoot.toHex()}</td>
-              <td><LinkExternal data={value} type='block' /></td>
+              <td>
+                <LinkExternal
+                  data={value}
+                  type='block'
+                />
+              </td>
             </tr>
             </tr>
           )}
           )}
         </Table.Body>
         </Table.Body>

+ 12 - 3
packages/page-explorer/src/BlockInfo/Extrinsic.tsx

@@ -46,7 +46,10 @@ function ExtrinsicDisplay ({ blockNumber, className, events, index, value }: Pro
       className={className}
       className={className}
       key={`extrinsic:${index}`}
       key={`extrinsic:${index}`}
     >
     >
-      <td colSpan={2} className='top'>
+      <td
+        className='top'
+        colSpan={2}
+      >
         <Expander
         <Expander
           summary={`${section}.${method}`}
           summary={`${section}.${method}`}
           summaryMeta={meta}
           summaryMeta={meta}
@@ -69,7 +72,10 @@ function ExtrinsicDisplay ({ blockNumber, className, events, index, value }: Pro
           />
           />
         </Expander>
         </Expander>
       </td>
       </td>
-      <td colSpan={2} className='top'>
+      <td
+        className='top'
+        colSpan={2}
+      >
         {thisEvents.map((event, index) =>
         {thisEvents.map((event, index) =>
           <Event
           <Event
             className='explorer--BlockByHash-event'
             className='explorer--BlockByHash-event'
@@ -86,7 +92,10 @@ function ExtrinsicDisplay ({ blockNumber, className, events, index, value }: Pro
               <div className='explorer--BlockByHash-nonce'>
               <div className='explorer--BlockByHash-nonce'>
                 {t('index')} {formatNumber(value.nonce)}
                 {t('index')} {formatNumber(value.nonce)}
               </div>
               </div>
-              <LinkExternal data={value.hash.toHex()} type='extrinsic' />
+              <LinkExternal
+                data={value.hash.toHex()}
+                type='extrinsic'
+              />
             </>
             </>
           )
           )
           : <div className='explorer--BlockByHash-unsigned'>{t('not signed')}</div>
           : <div className='explorer--BlockByHash-unsigned'>{t('not signed')}</div>

+ 16 - 3
packages/page-explorer/src/BlockInfo/Extrinsics.tsx

@@ -22,10 +22,23 @@ function Extrinsics ({ className, blockNumber, events, label, value }: Props): R
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
   return (
   return (
-    <Table className={className} isFixed>
+    <Table
+      className={className}
+      isFixed
+    >
       <Table.Head>
       <Table.Head>
-        <th colSpan={2} className='start'><h1>{label || t('extrinsics')}</h1></th>
-        <th colSpan={2} className='start'>{t('events')}</th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          <h1>{label || t('extrinsics')}</h1>
+        </th>
+        <th
+          className='start'
+          colSpan={2}
+        >
+          {t('events')}
+        </th>
         <th className='address'>{t('signer')}</th>
         <th className='address'>{t('signer')}</th>
       </Table.Head>
       </Table.Head>
       <Table.Body empty={t('No pending extrinsics are in the queue')}>
       <Table.Body empty={t('No pending extrinsics are in the queue')}>

+ 4 - 1
packages/page-explorer/src/Forks.tsx

@@ -183,7 +183,10 @@ function renderRows (rows: Row[]): React.ReactNode[] {
         return (
         return (
           <tr key={bn}>
           <tr key={bn}>
             <td key='blockNumber' />
             <td key='blockNumber' />
-            <td className='header isLink' colSpan={cols[0].width}>
+            <td
+              className='header isLink'
+              colSpan={cols[0].width}
+            >
               <div className='link'>&#8942;</div>
               <div className='link'>&#8942;</div>
             </td>
             </td>
           </tr>
           </tr>

+ 1 - 1
packages/page-explorer/src/Query.tsx

@@ -46,9 +46,9 @@ function Query ({ className, value: propsValue }: Props): React.ReactElement<Pro
         className='explorer--query'
         className='explorer--query'
         defaultValue={propsValue}
         defaultValue={propsValue}
         isError={!isValid && value.length !== 0}
         isError={!isValid && value.length !== 0}
-        placeholder={t('block hash or number to query')}
         onChange={_setHash}
         onChange={_setHash}
         onEnter={_onQuery}
         onEnter={_onQuery}
+        placeholder={t('block hash or number to query')}
         withLabel={false}
         withLabel={false}
       >
       >
         <Button
         <Button

+ 4 - 4
packages/page-explorer/src/index.tsx

@@ -63,10 +63,10 @@ function ExplorerApp ({ basePath, className }: Props): React.ReactElement<Props>
         />
         />
       </header>
       </header>
       <Switch>
       <Switch>
-        <Route path={`${basePath}/forks`} component={Forks} />
-        <Route path={`${basePath}/query/:value`} component={BlockInfo} />
-        <Route path={`${basePath}/query`} component={BlockInfo} />
-        <Route path={`${basePath}/node`} component={NodeInfo} />
+        <Route path={`${basePath}/forks`}><Forks /></Route>
+        <Route path={`${basePath}/query/:value`}><BlockInfo /></Route>
+        <Route path={`${basePath}/query`}><BlockInfo /></Route>
+        <Route path={`${basePath}/node`}><NodeInfo /></Route>
         <Route>
         <Route>
           <Main
           <Main
             events={events}
             events={events}

+ 1 - 1
packages/page-extrinsics/src/Balance.tsx

@@ -21,10 +21,10 @@ function BalanceDisplay ({ className, label, params, style }: Props): React.Reac
   return (
   return (
     <InputBalance
     <InputBalance
       className={className}
       className={className}
+      defaultValue={allBalances?.freeBalance}
       isDisabled
       isDisabled
       label={label}
       label={label}
       style={style}
       style={style}
-      defaultValue={allBalances?.freeBalance}
     />
     />
   );
   );
 }
 }

+ 9 - 4
packages/page-extrinsics/src/Selection.tsx

@@ -41,7 +41,12 @@ class Selection extends TxComponent<Props, State> {
       <div className='extrinsics--Selection'>
       <div className='extrinsics--Selection'>
         <InputAddress
         <InputAddress
           label={t('using the selected account')}
           label={t('using the selected account')}
-          labelExtra={<BalanceFree label={<label>{t('free balance')}</label>} params={accountId} />}
+          labelExtra={
+            <BalanceFree
+              label={<label>{t('free balance')}</label>}
+              params={accountId}
+            />
+          }
           onChange={this.onChangeSender}
           onChange={this.onChangeSender}
           type='account'
           type='account'
         />
         />
@@ -53,21 +58,21 @@ class Selection extends TxComponent<Props, State> {
         />
         />
         <Button.Group>
         <Button.Group>
           <TxButton
           <TxButton
+            extrinsic={extrinsic}
+            icon='sign-in'
             isBasic
             isBasic
             isDisabled={!isValidUnsigned}
             isDisabled={!isValidUnsigned}
             isUnsigned
             isUnsigned
             label={t('Submit Unsigned')}
             label={t('Submit Unsigned')}
-            icon='sign-in'
-            extrinsic={extrinsic}
             withSpinner
             withSpinner
           />
           />
           <Button.Or />
           <Button.Or />
           <TxButton
           <TxButton
             accountId={accountId}
             accountId={accountId}
+            extrinsic={extrinsic}
             icon='sign-in'
             icon='sign-in'
             isDisabled={!isValid}
             isDisabled={!isValid}
             isPrimary={false}
             isPrimary={false}
-            extrinsic={extrinsic}
             label={t('Submit Transaction')}
             label={t('Submit Transaction')}
           />
           />
         </Button.Group>
         </Button.Group>

+ 4 - 4
packages/page-generic-asset/src/AssetCard.tsx

@@ -24,19 +24,19 @@ function AssetCard ({ className, assetId, name, onForget, onSaveName, t }: Props
     <Card className={className}>
     <Card className={className}>
       <div>
       <div>
         <AssetRow
         <AssetRow
-          isEditable
           assetId={assetId}
           assetId={assetId}
-          defaultName={name}
           buttons={(
           buttons={(
             <Button
             <Button
-              isNegative
-              onClick={_onForget}
               icon='trash'
               icon='trash'
+              isNegative
               key='forget'
               key='forget'
+              onClick={_onForget}
               size='small'
               size='small'
               tooltip={t('Forget this asset')}
               tooltip={t('Forget this asset')}
             />
             />
           )}
           )}
+          defaultName={name}
+          isEditable
           onSaveName={_onSaveName}
           onSaveName={_onSaveName}
         />
         />
       </div>
       </div>

+ 4 - 4
packages/page-generic-asset/src/Assets.tsx

@@ -32,14 +32,14 @@ function Assets ({ assets, t }: Props): React.ReactElement<Props> {
       buttons={
       buttons={
         <Button.Group>
         <Button.Group>
           <Button
           <Button
-            label={t('Register Asset')}
             icon='registered'
             icon='registered'
+            label={t('Register Asset')}
             onClick={_toggleCreate}
             onClick={_toggleCreate}
           />
           />
         </Button.Group>
         </Button.Group>
       }
       }
-      isEmpty={emptyScreen}
       emptyText={t('No assets found.')}
       emptyText={t('No assets found.')}
+      isEmpty={emptyScreen}
     >
     >
       {isCreateOpen && (
       {isCreateOpen && (
         <CreateModal
         <CreateModal
@@ -49,11 +49,11 @@ function Assets ({ assets, t }: Props): React.ReactElement<Props> {
       )}
       )}
       {assets && Object.entries(assets).map(([id, name]): React.ReactNode => (
       {assets && Object.entries(assets).map(([id, name]): React.ReactNode => (
         <AssetCard
         <AssetCard
-          key={id}
           assetId={id}
           assetId={id}
+          key={id}
           name={name}
           name={name}
-          onSaveName={_onSaveName}
           onForget={_onForget}
           onForget={_onForget}
+          onSaveName={_onSaveName}
         />
         />
       ))}
       ))}
     </CardGrid>
     </CardGrid>

+ 14 - 4
packages/page-generic-asset/src/Transfer.tsx

@@ -74,7 +74,12 @@ function Transfer ({ assets, className, onClose, recipientId: propRecipientId, s
           help={t('The account you will send funds from.')}
           help={t('The account you will send funds from.')}
           isDisabled={!!propSenderId}
           isDisabled={!!propSenderId}
           label={t('send from account')}
           label={t('send from account')}
-          labelExtra={<Available label={transferrable} params={senderId} />}
+          labelExtra={
+            <Available
+              label={transferrable}
+              params={senderId}
+            />
+          }
           onChange={setSenderId}
           onChange={setSenderId}
           type='account'
           type='account'
         />
         />
@@ -83,7 +88,12 @@ function Transfer ({ assets, className, onClose, recipientId: propRecipientId, s
           help={t('Select a contact or paste the address you want to send funds to.')}
           help={t('Select a contact or paste the address you want to send funds to.')}
           isDisabled={!!propRecipientId}
           isDisabled={!!propRecipientId}
           label={t('send to address')}
           label={t('send to address')}
-          labelExtra={<Available label={transferrable} params={recipientId} />}
+          labelExtra={
+            <Available
+              label={transferrable}
+              params={recipientId}
+            />
+          }
           onChange={setRecipientId}
           onChange={setRecipientId}
           type='allPlus'
           type='allPlus'
         />
         />
@@ -91,9 +101,9 @@ function Transfer ({ assets, className, onClose, recipientId: propRecipientId, s
           allowAdd
           allowAdd
           help={t('Enter the Asset ID of the token you want to transfer.')}
           help={t('Enter the Asset ID of the token you want to transfer.')}
           label={t('asset id')}
           label={t('asset id')}
+          onAdd={_onAddAssetId}
           onChange={setAssetId}
           onChange={setAssetId}
           options={options}
           options={options}
-          onAdd={_onAddAssetId}
           value={assetId}
           value={assetId}
         />
         />
         <InputBalance
         <InputBalance
@@ -113,10 +123,10 @@ function Transfer ({ assets, className, onClose, recipientId: propRecipientId, s
         <TxButton
         <TxButton
           accountId={senderId}
           accountId={senderId}
           extrinsic={extrinsic}
           extrinsic={extrinsic}
+          icon='send'
           isDisabled={!hasAvailable}
           isDisabled={!hasAvailable}
           isPrimary
           isPrimary
           label={t('Make Transfer')}
           label={t('Make Transfer')}
-          icon='send'
           onStart={onClose}
           onStart={onClose}
         />
         />
       </Button.Group>
       </Button.Group>

+ 2 - 2
packages/page-generic-asset/src/index.tsx

@@ -38,8 +38,8 @@ function AssetApp ({ basePath }: Props): React.ReactElement<Props> {
         />
         />
       </header>
       </header>
       <Switch>
       <Switch>
-        <Route path={`${basePath}/transfer`} component={Transfer} />
-        <Route component={Assets} />
+        <Route path={`${basePath}/transfer`}><Transfer /></Route>
+        <Route><Assets /></Route>
       </Switch>
       </Switch>
     </main>
     </main>
   );
   );

+ 2 - 2
packages/page-generic-asset/src/modals/Create.tsx

@@ -50,11 +50,11 @@ function Create ({ onClose, onRegister }: Props): React.ReactElement<Props> {
       </Modal.Content>
       </Modal.Content>
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <Button
         <Button
+          icon='registered'
           isDisabled={!name}
           isDisabled={!name}
           isPrimary
           isPrimary
-          onClick={onClose}
           label={t('Register')}
           label={t('Register')}
-          icon='registered'
+          onClick={onClose}
         />
         />
       </Modal.Actions>
       </Modal.Actions>
     </Modal>
     </Modal>

+ 2 - 2
packages/page-js/src/ActionButtons.tsx

@@ -76,10 +76,10 @@ function ActionButtons ({ className, isCustomExample, isRunning, removeSnippet,
         >
         >
           <Input
           <Input
             autoFocus
             autoFocus
-            onChange={_onChangeName}
-            onEnter={_saveSnippet}
             maxLength={50}
             maxLength={50}
             min={1}
             min={1}
+            onChange={_onChangeName}
+            onEnter={_saveSnippet}
             placeholder={t('Name your example')}
             placeholder={t('Name your example')}
             value={snippetName}
             value={snippetName}
             withLabel={false}
             withLabel={false}

+ 4 - 1
packages/page-js/src/Output.tsx

@@ -31,7 +31,10 @@ const format = (value: any): string => {
 };
 };
 
 
 const renderEntry = ({ args, type }: Log, index: number): React.ReactNode => (
 const renderEntry = ({ args, type }: Log, index: number): React.ReactNode => (
-  <div className={`js--Log ${type}`} key={index}>
+  <div
+    className={`js--Log ${type}`}
+    key={index}
+  >
     {args.map((arg): string => format(arg)).join(' ')}
     {args.map((arg): string => format(arg)).join(' ')}
   </div>
   </div>
 );
 );

+ 1 - 1
packages/page-js/src/Playground.tsx

@@ -200,8 +200,8 @@ function Playground ({ className }: Props): React.ReactElement<Props> {
         <Dropdown
         <Dropdown
           className='js--Dropdown'
           className='js--Dropdown'
           isFull
           isFull
-          onChange={_selectExample}
           label={t('Select example')}
           label={t('Select example')}
+          onChange={_selectExample}
           options={options}
           options={options}
           value={selected.value}
           value={selected.value}
         />
         />

+ 2 - 2
packages/page-parachains/src/Overview/Register.tsx

@@ -79,8 +79,8 @@ function Register ({ nextFreeId = ONE_THOUSAND, sudoKey }: Props): React.ReactEl
     <>
     <>
       <div className='ui--Row-buttons'>
       <div className='ui--Row-buttons'>
         <Button
         <Button
-          label={t('Register a parachain')}
           icon='add'
           icon='add'
+          label={t('Register a parachain')}
           onClick={onOpen}
           onClick={onOpen}
         />
         />
       </div>
       </div>
@@ -93,9 +93,9 @@ function Register ({ nextFreeId = ONE_THOUSAND, sudoKey }: Props): React.ReactEl
           <Modal.Content>
           <Modal.Content>
             <InputNumber
             <InputNumber
               defaultValue={nextFreeId}
               defaultValue={nextFreeId}
-              label={t('parachain id')}
               help={t('The id number to assign to this parachain.')}
               help={t('The id number to assign to this parachain.')}
               isError={!isIdValid}
               isError={!isIdValid}
+              label={t('parachain id')}
               onChange={setId}
               onChange={setId}
               onEnter={onSendRef.current}
               onEnter={onSendRef.current}
               onEscape={onClose}
               onEscape={onClose}

+ 1 - 1
packages/page-parachains/src/Parachain/Deregister.tsx

@@ -48,8 +48,8 @@ function Deregister ({ id, info, isOpen, onClose, onSubmit, sudoKey }: Props): R
   return (
   return (
     <Modal
     <Modal
       header={t('Deregister this parachain')}
       header={t('Deregister this parachain')}
-      open={isOpen}
       onClose={onClose}
       onClose={onClose}
+      open={isOpen}
       small
       small
     >
     >
       <Modal.Content>
       <Modal.Content>

+ 1 - 1
packages/page-parachains/src/Parachain/index.tsx

@@ -65,8 +65,8 @@ function Parachain ({ className, basePath, isMine, paraInfoRef, sudoKey }: Props
       <SummaryBox>
       <SummaryBox>
         <section>
         <section>
           <ParachainInfo
           <ParachainInfo
-            isBig
             info={parachain.info}
             info={parachain.info}
+            isBig
           >
           >
             {(sudoKey && isMine) && (
             {(sudoKey && isMine) && (
               <Popup
               <Popup

+ 7 - 4
packages/page-settings/src/Developer.tsx

@@ -115,6 +115,9 @@ function Developer ({ className, onStatusChange }: Props): React.ReactElement<Pr
 
 
   const typesHasNoEntries = Object.keys(types).length === 0;
   const typesHasNoEntries = Object.keys(types).length === 0;
 
 
+  // Trans component
+  /* eslint-disable react/jsx-max-props-per-line */
+
   return (
   return (
     <div className={className}>
     <div className={className}>
       <div className='ui--row'>
       <div className='ui--row'>
@@ -146,16 +149,16 @@ function Developer ({ className, onStatusChange }: Props): React.ReactElement<Pr
       </div>
       </div>
       <Button.Group>
       <Button.Group>
         <Button
         <Button
-          onClick={_clearTypes}
-          label={t('Reset')}
           icon='sync'
           icon='sync'
+          label={t('Reset')}
+          onClick={_clearTypes}
         />
         />
         <Button.Or />
         <Button.Or />
         <Button
         <Button
+          icon='save'
           isDisabled={!isTypesValid || !isJsonValid}
           isDisabled={!isTypesValid || !isJsonValid}
-          onClick={_saveDeveloper}
           label={t('Save')}
           label={t('Save')}
-          icon='save'
+          onClick={_saveDeveloper}
         />
         />
       </Button.Group>
       </Button.Group>
     </div>
     </div>

+ 6 - 6
packages/page-settings/src/General.tsx

@@ -132,19 +132,19 @@ function General ({ className, isModalContent, onClose }: Props): React.ReactEle
           </>
           </>
         )}
         )}
         <Button
         <Button
+          icon='save'
           isDisabled={changed === null}
           isDisabled={changed === null}
           isPrimary={isModalContent}
           isPrimary={isModalContent}
-          onClick={
-            changed
-              ? _saveAndReload
-              : _save
-          }
           label={
           label={
             changed
             changed
               ? t('Save & Reload')
               ? t('Save & Reload')
               : t('Save')
               : t('Save')
           }
           }
-          icon='save'
+          onClick={
+            changed
+              ? _saveAndReload
+              : _save
+          }
         />
         />
       </Button.Group>
       </Button.Group>
     </div>
     </div>

+ 6 - 1
packages/page-settings/src/Metadata/ChainColorIndicator.tsx

@@ -12,7 +12,12 @@ interface Props extends BareProps {
 }
 }
 
 
 function ChainColorIndicator ({ color, className }: Props): React.ReactElement<Props> {
 function ChainColorIndicator ({ color, className }: Props): React.ReactElement<Props> {
-  return <div color={color} className={className}/>;
+  return (
+    <div
+      className={className}
+      color={color}
+    />
+  );
 }
 }
 
 
 export default React.memo(styled(ChainColorIndicator)`
 export default React.memo(styled(ChainColorIndicator)`

+ 1 - 1
packages/page-settings/src/Metadata/NetworkSpecs.tsx

@@ -102,9 +102,9 @@ function NetworkSpecs ({ chainInfo, className }: Props): React.ReactElement<Prop
         >
         >
           <div className='settings--networkSpecs-colorButton'>
           <div className='settings--networkSpecs-colorButton'>
             <Button
             <Button
-              label={t('Random')}
               icon='sync'
               icon='sync'
               key='spread'
               key='spread'
+              label={t('Random')}
               onClick={_onSetRandomColor}
               onClick={_onSetRandomColor}
             />
             />
             <ChainColorIndicator color={networkSpecs.color}/>
             <ChainColorIndicator color={networkSpecs.color}/>

+ 1 - 1
packages/page-settings/src/util.tsx

@@ -13,8 +13,8 @@ export function createOption (t: (input: any) => string, { info, isHeader, text,
   if (isHeader) {
   if (isHeader) {
     return (
     return (
       <Dropdown.Header
       <Dropdown.Header
-        key={text as string}
         content={withI18n ? t(text) : text}
         content={withI18n ? t(text) : text}
+        key={text as string}
       />
       />
     );
     );
   }
   }

+ 6 - 1
packages/page-society/src/Overview/Members.tsx

@@ -31,7 +31,12 @@ function Members ({ className, info }: Props): React.ReactElement<Props> {
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th colSpan={3} className='start'><h1>{t('members')}</h1></th>
+        <th
+          className='start'
+          colSpan={3}
+        >
+          <h1>{t('members')}</h1>
+        </th>
         <th>{t('strikes')}</th>
         <th>{t('strikes')}</th>
       </Table.Head>
       </Table.Head>
       <Table.Body empty={info && t('No active members')}>
       <Table.Body empty={info && t('No active members')}>

+ 8 - 3
packages/page-staking/src/Actions/Account/BondExtra.tsx

@@ -57,12 +57,12 @@ class BondExtra extends TxComponent<Props, State> {
         <Modal.Actions onCancel={onClose}>
         <Modal.Actions onCancel={onClose}>
           <TxButton
           <TxButton
             accountId={stashId}
             accountId={stashId}
+            extrinsic={extrinsic}
+            icon='sign-in'
             isDisabled={!canSubmit}
             isDisabled={!canSubmit}
             isPrimary
             isPrimary
             label={t('Bond more')}
             label={t('Bond more')}
-            icon='sign-in'
             onStart={onClose}
             onStart={onClose}
-            extrinsic={extrinsic}
             withSpinner
             withSpinner
           />
           />
         </Modal.Actions>
         </Modal.Actions>
@@ -81,7 +81,12 @@ class BondExtra extends TxComponent<Props, State> {
           defaultValue={stashId}
           defaultValue={stashId}
           isDisabled
           isDisabled
           label={t('stash account')}
           label={t('stash account')}
-          labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={stashId} />}
+          labelExtra={
+            <Available
+              label={<span className='label'>{t('transferrable')}</span>}
+              params={stashId}
+            />
+          }
         />
         />
         <InputBalance
         <InputBalance
           autoFocus
           autoFocus

+ 2 - 2
packages/page-staking/src/Actions/Account/Nominate.tsx

@@ -88,12 +88,12 @@ function Nominate ({ className, controllerId, nominees, onClose, next, stakingOv
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <TxButton
         <TxButton
           accountId={controllerId}
           accountId={controllerId}
+          icon='hand paper outline'
           isDisabled={!selection?.length}
           isDisabled={!selection?.length}
           isPrimary
           isPrimary
+          label={t('Nominate')}
           onStart={onClose}
           onStart={onClose}
           params={[selection]}
           params={[selection]}
-          label={t('Nominate')}
-          icon='hand paper outline'
           tx='staking.nominate'
           tx='staking.nominate'
         />
         />
       </Modal.Actions>
       </Modal.Actions>

+ 2 - 2
packages/page-staking/src/Actions/Account/SetControllerAccount.tsx

@@ -71,18 +71,18 @@ class SetControllerAccount extends TxComponent<Props, State> {
           />
           />
           <InputValidationController
           <InputValidationController
             accountId={stashId}
             accountId={stashId}
-            defaultController={defaultControllerId}
             controllerId={controllerId}
             controllerId={controllerId}
+            defaultController={defaultControllerId}
             onError={this.onControllerError}
             onError={this.onControllerError}
           />
           />
         </Modal.Content>
         </Modal.Content>
         <Modal.Actions onCancel={onClose}>
         <Modal.Actions onCancel={onClose}>
           <TxButton
           <TxButton
             accountId={stashId}
             accountId={stashId}
+            icon='sign-in'
             isDisabled={!canSubmit}
             isDisabled={!canSubmit}
             isPrimary
             isPrimary
             label={t('Set controller')}
             label={t('Set controller')}
-            icon='sign-in'
             onStart={onClose}
             onStart={onClose}
             params={[controllerId]}
             params={[controllerId]}
             tx='staking.setController'
             tx='staking.setController'

+ 2 - 2
packages/page-staking/src/Actions/Account/SetRewardDestination.tsx

@@ -45,10 +45,10 @@ class SetRewardDestination extends TxComponent<Props, State> {
         <Modal.Actions onCancel={onClose}>
         <Modal.Actions onCancel={onClose}>
           <TxButton
           <TxButton
             accountId={controllerId}
             accountId={controllerId}
+            icon='sign-in'
             isDisabled={!canSubmit}
             isDisabled={!canSubmit}
             isPrimary
             isPrimary
             label={t('Set reward destination')}
             label={t('Set reward destination')}
-            icon='sign-in'
             onStart={onClose}
             onStart={onClose}
             params={[destination]}
             params={[destination]}
             tx={'staking.setPayee'}
             tx={'staking.setPayee'}
@@ -67,9 +67,9 @@ class SetRewardDestination extends TxComponent<Props, State> {
       <Modal.Content className='ui--signer-Signer-Content'>
       <Modal.Content className='ui--signer-Signer-Content'>
         <InputAddress
         <InputAddress
           className='medium'
           className='medium'
-          isDisabled
           defaultValue={controllerId}
           defaultValue={controllerId}
           help={t('The controller is the account that is be used to control any nominating or validating actions. I will sign this transaction.')}
           help={t('The controller is the account that is be used to control any nominating or validating actions. I will sign this transaction.')}
+          isDisabled
           label={t('controller account')}
           label={t('controller account')}
         />
         />
         <Dropdown
         <Dropdown

+ 1 - 1
packages/page-staking/src/Actions/Account/SetSessionKey.tsx

@@ -43,10 +43,10 @@ function SetSessionKey ({ controllerId, onClose }: Props): React.ReactElement<Pr
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <TxButton
         <TxButton
           accountId={controllerId}
           accountId={controllerId}
+          icon='sign-in'
           isDisabled={!keys}
           isDisabled={!keys}
           isPrimary
           isPrimary
           label={t('Set Session Key')}
           label={t('Set Session Key')}
-          icon='sign-in'
           onStart={onClose}
           onStart={onClose}
           params={[keys, EMPTY_PROOF]}
           params={[keys, EMPTY_PROOF]}
           tx='session.setKeys'
           tx='session.setKeys'

+ 1 - 1
packages/page-staking/src/Actions/Account/Unbond.tsx

@@ -69,10 +69,10 @@ class Unbond extends TxComponent<Props, State> {
         <Modal.Actions onCancel={onClose}>
         <Modal.Actions onCancel={onClose}>
           <TxButton
           <TxButton
             accountId={controllerId}
             accountId={controllerId}
+            icon='sign-out'
             isDisabled={!canSubmit}
             isDisabled={!canSubmit}
             isPrimary
             isPrimary
             label={t('Unbond')}
             label={t('Unbond')}
-            icon='sign-out'
             onStart={onClose}
             onStart={onClose}
             params={[maxUnbond]}
             params={[maxUnbond]}
             tx='staking.unbond'
             tx='staking.unbond'

+ 1 - 1
packages/page-staking/src/Actions/Account/Validate.tsx

@@ -58,9 +58,9 @@ class Validate extends TxComponent<Props, State> {
       <Modal.Actions onCancel={onClose}>
       <Modal.Actions onCancel={onClose}>
         <TxButton
         <TxButton
           accountId={controllerId}
           accountId={controllerId}
+          icon='check circle outline'
           isPrimary
           isPrimary
           label={t('Validate')}
           label={t('Validate')}
-          icon='check circle outline'
           onStart={onClose}
           onStart={onClose}
           params={[{ commission }]}
           params={[{ commission }]}
           tx='staking.validate'
           tx='staking.validate'

+ 10 - 10
packages/page-staking/src/Actions/Account/index.tsx

@@ -320,11 +320,11 @@ function Account ({ allStashes, className, isOwnStash, next, onUpdateType, rewar
                 ? (
                 ? (
                   <TxButton
                   <TxButton
                     accountId={controllerId}
                     accountId={controllerId}
+                    icon='stop'
                     isDisabled={!isOwnController}
                     isDisabled={!isOwnController}
                     isPrimary={false}
                     isPrimary={false}
-                    label={t('Stop')}
-                    icon='stop'
                     key='stop'
                     key='stop'
+                    label={t('Stop')}
                     tx='staking.chill'
                     tx='staking.chill'
                   />
                   />
                 )
                 )
@@ -333,30 +333,30 @@ function Account ({ allStashes, className, isOwnStash, next, onUpdateType, rewar
                     {(!sessionIds.length || hexSessionIdNext === '0x')
                     {(!sessionIds.length || hexSessionIdNext === '0x')
                       ? (
                       ? (
                         <Button
                         <Button
+                          icon='sign-in'
                           isDisabled={!isOwnController}
                           isDisabled={!isOwnController}
                           key='set'
                           key='set'
-                          onClick={toggleSetSession}
                           label={t('Session Key')}
                           label={t('Session Key')}
-                          icon='sign-in'
+                          onClick={toggleSetSession}
                         />
                         />
                       )
                       )
                       : (
                       : (
                         <Button
                         <Button
+                          icon='check circle outline'
                           isDisabled={!isOwnController}
                           isDisabled={!isOwnController}
                           key='validate'
                           key='validate'
-                          onClick={toggleValidate}
                           label={t('Validate')}
                           label={t('Validate')}
-                          icon='check circle outline'
+                          onClick={toggleValidate}
                         />
                         />
                       )
                       )
                     }
                     }
                     <Button.Or key='nominate.or' />
                     <Button.Or key='nominate.or' />
                     <Button
                     <Button
+                      icon='hand paper outline'
                       isDisabled={!isOwnController}
                       isDisabled={!isOwnController}
                       key='nominate'
                       key='nominate'
-                      onClick={toggleNominate}
                       label={t('Nominate')}
                       label={t('Nominate')}
-                      icon='hand paper outline'
+                      onClick={toggleNominate}
                     />
                     />
                   </Button.Group>
                   </Button.Group>
                 )
                 )
@@ -374,9 +374,9 @@ function Account ({ allStashes, className, isOwnStash, next, onUpdateType, rewar
                 }
                 }
               >
               >
                 <Menu
                 <Menu
-                  vertical
-                  text
                   onClick={toggleSettings}
                   onClick={toggleSettings}
+                  text
+                  vertical
                 >
                 >
                   {api.query.staking.activeEra && (
                   {api.query.staking.activeEra && (
                     <Menu.Item
                     <Menu.Item

+ 2 - 2
packages/page-staking/src/Actions/NewStake.tsx

@@ -111,12 +111,12 @@ class NewStake extends TxComponent<Props, State> {
         <Modal.Actions onCancel={onClose}>
         <Modal.Actions onCancel={onClose}>
           <TxButton
           <TxButton
             accountId={stashId}
             accountId={stashId}
+            extrinsic={extrinsic}
+            icon='sign-in'
             isDisabled={!canSubmit}
             isDisabled={!canSubmit}
             isPrimary
             isPrimary
             label={t('Bond')}
             label={t('Bond')}
-            icon='sign-in'
             onStart={onClose}
             onStart={onClose}
-            extrinsic={extrinsic}
           />
           />
         </Modal.Actions>
         </Modal.Actions>
       </Modal>
       </Modal>

+ 7 - 2
packages/page-staking/src/Actions/index.tsx

@@ -68,9 +68,9 @@ function Actions ({ allRewards, allStashes, className, isVisible, next, stakingO
     <div className={`${className} ${!isVisible && 'staking--hidden'}`}>
     <div className={`${className} ${!isVisible && 'staking--hidden'}`}>
       <Button.Group>
       <Button.Group>
         <Button
         <Button
+          icon='add'
           key='new-stake'
           key='new-stake'
           label={t('New stake')}
           label={t('New stake')}
-          icon='add'
           onClick={_toggleNewStake}
           onClick={_toggleNewStake}
         />
         />
       </Button.Group>
       </Button.Group>
@@ -79,7 +79,12 @@ function Actions ({ allRewards, allStashes, className, isVisible, next, stakingO
       )}
       )}
       <Table>
       <Table>
         <Table.Head>
         <Table.Head>
-          <th className='start' colSpan={2}><h1>{t('stashes')}</h1></th>
+          <th
+            className='start'
+            colSpan={2}
+          >
+            <h1>{t('stashes')}</h1>
+          </th>
           <th className='address'>{t('controller')}</th>
           <th className='address'>{t('controller')}</th>
           <th className='number'>{t('rewards')}</th>
           <th className='number'>{t('rewards')}</th>
           <th className='number'>{t('bonded')}</th>
           <th className='number'>{t('bonded')}</th>

+ 12 - 2
packages/page-staking/src/Overview/CurrentList.tsx

@@ -138,7 +138,12 @@ function CurrentList ({ authorsMap, hasQueries, isIntentions, lastAuthors, next,
     ? (
     ? (
       <Table>
       <Table>
         <Table.Head>
         <Table.Head>
-          <th colSpan={9}className='start'><h1>{t('intentions')}</h1></th>
+          <th
+            className='start'
+            colSpan={9}
+          >
+            <h1>{t('intentions')}</h1>
+          </th>
         </Table.Head>
         </Table.Head>
         <Table.Body empty={waiting && t('No waiting validators found')}>
         <Table.Body empty={waiting && t('No waiting validators found')}>
           {_renderRows(elected, false).concat(..._renderRows(waiting, false))}
           {_renderRows(elected, false).concat(..._renderRows(waiting, false))}
@@ -157,7 +162,12 @@ function CurrentList ({ authorsMap, hasQueries, isIntentions, lastAuthors, next,
             value={nameFilter}
             value={nameFilter}
           />
           />
         }>
         }>
-          <th colSpan={3} className='start'><h1>{t('validators')}</h1></th>
+          <th
+            className='start'
+            colSpan={3}
+          >
+            <h1>{t('validators')}</h1>
+          </th>
           <th>{t('other stake')}</th>
           <th>{t('other stake')}</th>
           <th>{t('own stake')}</th>
           <th>{t('own stake')}</th>
           <th>{t('commission')}</th>
           <th>{t('commission')}</th>

+ 6 - 1
packages/page-staking/src/Targets/index.tsx

@@ -230,7 +230,12 @@ function Targets ({ className }: Props): React.ReactElement<Props> {
             value={_amount}
             value={_amount}
           />
           />
         }>
         }>
-          <th className='start' colSpan={3}><h1>{t('validators')}</h1></th>
+          <th
+            className='start'
+            colSpan={3}
+          >
+            <h1>{t('validators')}</h1>
+          </th>
           {['rankComm', 'rankBondTotal', 'rankBondOwn', 'rankBondOther', 'rankOverall'].map((header): React.ReactNode => (
           {['rankComm', 'rankBondTotal', 'rankBondOwn', 'rankBondOther', 'rankOverall'].map((header): React.ReactNode => (
             <th
             <th
               className={`isClickable ${sortBy === header && 'ui--highlight--border'} number`}
               className={`isClickable ${sortBy === header && 'ui--highlight--border'} number`}

+ 2 - 2
packages/page-staking/src/index.tsx

@@ -122,8 +122,8 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement<Props>
           <Overview
           <Overview
             hasQueries={hasQueries}
             hasQueries={hasQueries}
             isIntentions
             isIntentions
-            recentlyOnline={recentlyOnline}
             next={next}
             next={next}
+            recentlyOnline={recentlyOnline}
             setNominators={dispatchNominators}
             setNominators={dispatchNominators}
             stakingOverview={stakingOverview}
             stakingOverview={stakingOverview}
           />
           />
@@ -139,8 +139,8 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement<Props>
       <Overview
       <Overview
         className={basePath === pathname ? '' : 'staking--hidden'}
         className={basePath === pathname ? '' : 'staking--hidden'}
         hasQueries={hasQueries}
         hasQueries={hasQueries}
-        recentlyOnline={recentlyOnline}
         next={next}
         next={next}
+        recentlyOnline={recentlyOnline}
         setNominators={dispatchNominators}
         setNominators={dispatchNominators}
         stakingOverview={stakingOverview}
         stakingOverview={stakingOverview}
       />
       />

+ 1 - 1
packages/page-storage/src/Selection/Consts.tsx

@@ -37,9 +37,9 @@ function Consts ({ onAdd }: Props): React.ReactElement<Props> {
       <div className='storage--actionrow-value'>
       <div className='storage--actionrow-value'>
         <InputConsts
         <InputConsts
           defaultValue={defaultValue}
           defaultValue={defaultValue}
+          help={meta?.documentation.join(' ')}
           label={t('selected constant query')}
           label={t('selected constant query')}
           onChange={setValue}
           onChange={setValue}
-          help={meta?.documentation.join(' ')}
         />
         />
       </div>
       </div>
       <div className='storage--actionrow-buttons'>
       <div className='storage--actionrow-buttons'>

+ 1 - 1
packages/page-storage/src/Selection/Modules.tsx

@@ -94,9 +94,9 @@ function Modules ({ onAdd }: Props): React.ReactElement<Props> {
       <div className='storage--actionrow-value'>
       <div className='storage--actionrow-value'>
         <InputStorage
         <InputStorage
           defaultValue={api.query.timestamp.now}
           defaultValue={api.query.timestamp.now}
+          help={meta?.documentation.join(' ')}
           label={t('selected state query')}
           label={t('selected state query')}
           onChange={_onChangeKey}
           onChange={_onChangeKey}
-          help={meta?.documentation.join(' ')}
         />
         />
         <Params
         <Params
           key={`${section}.${method}:params` /* force re-render on change */}
           key={`${section}.${method}:params` /* force re-render on change */}

+ 9 - 9
packages/page-storage/src/Selection/index.tsx

@@ -2,9 +2,9 @@
 // This software may be modified and distributed under the terms
 // This software may be modified and distributed under the terms
 // of the Apache-2.0 license. See the LICENSE file for details.
 // of the Apache-2.0 license. See the LICENSE file for details.
 
 
-import { ComponentProps, QueryTypes, ParitalQueryTypes } from '../types';
+import { QueryTypes, ParitalQueryTypes } from '../types';
 
 
-import React, { useMemo } from 'react';
+import React, { useCallback, useMemo } from 'react';
 import { Route, Switch } from 'react-router';
 import { Route, Switch } from 'react-router';
 import { Tabs } from '@polkadot/react-components';
 import { Tabs } from '@polkadot/react-components';
 
 
@@ -38,10 +38,10 @@ function Selection ({ basePath, onAdd }: Props): React.ReactElement<Props> {
     }
     }
   ], [t]);
   ], [t]);
 
 
-  const _onAdd = (query: ParitalQueryTypes): void => onAdd({ ...query, id: ++id });
-  const _renderComponent = (Component: React.ComponentType<ComponentProps>): () => React.ReactNode =>
-    // eslint-disable-next-line react/display-name
-    (): React.ReactNode => <Component onAdd={_onAdd} />;
+  const _onAdd = useCallback(
+    (query: ParitalQueryTypes): void => onAdd({ ...query, id: ++id }),
+    [onAdd]
+  );
 
 
   return (
   return (
     <>
     <>
@@ -52,9 +52,9 @@ function Selection ({ basePath, onAdd }: Props): React.ReactElement<Props> {
         />
         />
       </header>
       </header>
       <Switch>
       <Switch>
-        <Route path={`${basePath}/constants`} render={_renderComponent(Consts)} />
-        <Route path={`${basePath}/raw`} render={_renderComponent(Raw)} />
-        <Route render={_renderComponent(Modules)} />
+        <Route path={`${basePath}/constants`}><Consts onAdd={_onAdd} /></Route>
+        <Route path={`${basePath}/raw`}><Raw onAdd={_onAdd} /></Route>
+        <Route><Modules onAdd={_onAdd} /></Route>
       </Switch>
       </Switch>
     </>
     </>
   );
   );

+ 3 - 3
packages/page-sudo/src/SetKey.tsx

@@ -34,18 +34,18 @@ function SetKey ({ allAccounts, className, isMine, sudoKey }: Props): React.Reac
             <>
             <>
               <InputAddress
               <InputAddress
                 className='sudoInputAddress'
                 className='sudoInputAddress'
-                value={selected}
-                label={t('sudo key')}
                 isInput={true}
                 isInput={true}
+                label={t('sudo key')}
                 onChange={setSelected}
                 onChange={setSelected}
                 type='all'
                 type='all'
+                value={selected}
               />
               />
               <TxButton
               <TxButton
                 accountId={sudoKey}
                 accountId={sudoKey}
+                icon='sign-in'
                 isDisabled={!isMine || sudoKey === selected}
                 isDisabled={!isMine || sudoKey === selected}
                 isPrimary
                 isPrimary
                 label={t('Reassign')}
                 label={t('Reassign')}
-                icon='sign-in'
                 params={[selected]}
                 params={[selected]}
                 tx='sudo.setKey'
                 tx='sudo.setKey'
               />
               />

+ 2 - 2
packages/page-sudo/src/Sudo.tsx

@@ -47,11 +47,11 @@ class Propose extends TxComponent<Props, State> {
           <Button.Group>
           <Button.Group>
             <TxButton
             <TxButton
               accountId={sudoKey}
               accountId={sudoKey}
-              label={t('Submit Sudo')}
               icon='sign-in'
               icon='sign-in'
-              tx='sudo.sudo'
               isDisabled={!method || !isValid}
               isDisabled={!method || !isValid}
+              label={t('Submit Sudo')}
               params={method ? [createType(registry, 'Proposal', method)] : []}
               params={method ? [createType(registry, 'Proposal', method)] : []}
+              tx='sudo.sudo'
               withSpinner
               withSpinner
             />
             />
           </Button.Group>
           </Button.Group>

+ 14 - 17
packages/page-sudo/src/index.tsx

@@ -1,10 +1,8 @@
-/* eslint-disable @typescript-eslint/camelcase */
 // Copyright 2017-2020 @polkadot/app-123code authors & contributors
 // Copyright 2017-2020 @polkadot/app-123code authors & contributors
 // This software may be modified and distributed under the terms
 // This software may be modified and distributed under the terms
 // of the Apache-2.0 license. See the LICENSE file for details.
 // of the Apache-2.0 license. See the LICENSE file for details.
 
 
 import { AppProps as Props } from '@polkadot/react-components/types';
 import { AppProps as Props } from '@polkadot/react-components/types';
-import { ComponentProps } from './types';
 
 
 import React, { useMemo } from 'react';
 import React, { useMemo } from 'react';
 import { Route, Switch } from 'react-router';
 import { Route, Switch } from 'react-router';
@@ -31,19 +29,6 @@ function SudoApp ({ basePath }: Props): React.ReactElement<Props> {
     }
     }
   ], [t]);
   ], [t]);
 
 
-  const _renderComponent = (Component: React.ComponentType<ComponentProps>): () => React.ReactNode => {
-    // eslint-disable-next-line react/display-name
-    return (): React.ReactNode => {
-      return (
-        <Component
-          allAccounts={allAccounts}
-          sudoKey={sudoKey}
-          isMine={isMine}
-        />
-      );
-    };
-  };
-
   return (
   return (
     <main>
     <main>
       <header>
       <header>
@@ -55,8 +40,20 @@ function SudoApp ({ basePath }: Props): React.ReactElement<Props> {
       {isMine
       {isMine
         ? (
         ? (
           <Switch>
           <Switch>
-            <Route path={`${basePath}/key`} render={_renderComponent(SetKey)} />
-            <Route render={_renderComponent(Sudo)} />
+            <Route path={`${basePath}/key`}>
+              <SetKey
+                allAccounts={allAccounts}
+                isMine={isMine}
+                sudoKey={sudoKey}
+              />
+            </Route>
+            <Route>
+              <Sudo
+                allAccounts={allAccounts}
+                isMine={isMine}
+                sudoKey={sudoKey}
+              />
+            </Route>
           </Switch>
           </Switch>
         )
         )
         : (
         : (

+ 6 - 1
packages/page-tech-comm/src/Overview/Members.tsx

@@ -21,7 +21,12 @@ function Members ({ className, members, prime }: Props): React.ReactElement<Prop
   return (
   return (
     <Table className={className}>
     <Table className={className}>
       <Table.Head>
       <Table.Head>
-        <th className='start' colSpan={3}><h1>{t('members')}</h1></th>
+        <th
+          className='start'
+          colSpan={3}
+        >
+          <h1>{t('members')}</h1>
+        </th>
       </Table.Head>
       </Table.Head>
       <Table.Body empty={members && t('No members found')}>
       <Table.Body empty={members && t('No members found')}>
         {members?.map((accountId): React.ReactNode => (
         {members?.map((accountId): React.ReactNode => (

+ 2 - 2
packages/page-tech-comm/src/Proposals/Propose.tsx

@@ -46,8 +46,8 @@ function Propose ({ isMember, members }: Props): React.ReactElement<Props> {
     <>
     <>
       {isOpen && (
       {isOpen && (
         <Modal
         <Modal
-          onClose={onClose}
           header={t('Propose a committee motion')}
           header={t('Propose a committee motion')}
+          onClose={onClose}
         >
         >
           <Modal.Content>
           <Modal.Content>
             <InputAddress
             <InputAddress
@@ -60,9 +60,9 @@ function Propose ({ isMember, members }: Props): React.ReactElement<Props> {
             />
             />
             <InputNumber
             <InputNumber
               className='medium'
               className='medium'
-              label={t('threshold')}
               help={t('The minimum number of committee votes required to approve this motion')}
               help={t('The minimum number of committee votes required to approve this motion')}
               isError={!hasThreshold}
               isError={!hasThreshold}
+              label={t('threshold')}
               onChange={_onChangeThreshold}
               onChange={_onChangeThreshold}
               placeholder={t('Positive number between 1 and {{count}}', { replace: { count: members.length } })}
               placeholder={t('Positive number between 1 and {{count}}', { replace: { count: members.length } })}
               value={threshold || undefined}
               value={threshold || undefined}

+ 6 - 1
packages/page-tech-comm/src/Proposals/index.tsx

@@ -25,7 +25,12 @@ function Proposals ({ className, isMember, members, prime, proposals }: Props):
       </Button.Group>
       </Button.Group>
       <Table>
       <Table>
         <Table.Head>
         <Table.Head>
-          <th className='start' colSpan={2}><h1>{t('proposals')}</h1></th>
+          <th
+            className='start'
+            colSpan={2}
+          >
+            <h1>{t('proposals')}</h1>
+          </th>
           <th>{t('threshold')}</th>
           <th>{t('threshold')}</th>
           <th className='address'>{t('aye')}</th>
           <th className='address'>{t('aye')}</th>
           <th className='address'>{t('nay')}</th>
           <th className='address'>{t('nay')}</th>

+ 1 - 1
packages/page-toolbox/src/Rpc/Account.tsx

@@ -49,8 +49,8 @@ function Account ({ className, defaultValue, isError, onChange }: Props): React.
           label={t('with an index of')}
           label={t('with an index of')}
         >
         >
           <Nonce
           <Nonce
-            className='ui disabled dropdown selection'
             callOnResult={_onChangeAccountNonce}
             callOnResult={_onChangeAccountNonce}
+            className='ui disabled dropdown selection'
             params={accountId}
             params={accountId}
           />
           />
         </Labelled>
         </Labelled>

+ 2 - 2
packages/page-toolbox/src/Rpc/Selection.tsx

@@ -61,10 +61,10 @@ class Selection extends TxComponent<Props, State> {
         />
         />
         <Button.Group>
         <Button.Group>
           <Button
           <Button
+            icon='sign-in'
             isDisabled={!isValid}
             isDisabled={!isValid}
-            onClick={this.onSubmit}
             label={t('Submit RPC call')}
             label={t('Submit RPC call')}
-            icon='sign-in'
+            onClick={this.onSubmit}
             ref={this.button}
             ref={this.button}
           />
           />
         </Button.Group>
         </Button.Group>

+ 2 - 2
packages/page-toolbox/src/Sign.tsx

@@ -162,9 +162,9 @@ function Sign ({ className }: Props): React.ReactElement<Props> {
                 {t('You need to unlock this account to be able to sign data.')}<br/>
                 {t('You need to unlock this account to be able to sign data.')}<br/>
                 <Button.Group>
                 <Button.Group>
                   <Button
                   <Button
-                    onClick={_toggleUnlock}
-                    label={t('Unlock account')}
                     icon='unlock'
                     icon='unlock'
+                    label={t('Unlock account')}
+                    onClick={_toggleUnlock}
                   />
                   />
                 </Button.Group>
                 </Button.Group>
               </div>
               </div>

Some files were not shown because too many files changed in this diff