diff --git a/package.json b/package.json index a502d84f91..c0157598c4 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "packages/*" ], "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/types": "^1.9.0-beta.26", + "@polkadot/types": "^1.9.1", "@polkadot/util": "^2.7.1", "@polkadot/util-crypto": "^2.7.1", "babel-core": "^7.0.0-bridge.0", @@ -36,7 +36,7 @@ "@babel/core": "^7.9.0", "@babel/register": "^7.9.0", "@babel/runtime": "^7.9.2", - "@polkadot/dev": "^0.51.9", + "@polkadot/dev": "^0.52.1", "@polkadot/ts": "^0.3.14", "@types/bn.js": "^4.11.6", "@types/chart.js": "^2.9.16", diff --git a/packages/apps/package.json b/packages/apps/package.json index c6a9108346..8148e2c450 100644 --- a/packages/apps/package.json +++ b/packages/apps/package.json @@ -15,7 +15,7 @@ "dependencies": { "@babel/polyfill": "^7.8.7", "@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-signer": "0.40.0-beta.221", "query-string": "^6.11.1" diff --git a/packages/apps/src/SideBar/Item.tsx b/packages/apps/src/SideBar/Item.tsx index aadf9e07d6..e5f97b6423 100644 --- a/packages/apps/src/SideBar/Item.tsx +++ b/packages/apps/src/SideBar/Item.tsx @@ -105,8 +105,8 @@ function Item ({ route, isCollapsed, onClick }: Props): React.ReactElement{t(`sidebar.${name}`, i18n)} {count !== 0 && ( )} diff --git a/packages/apps/src/SideBar/index.tsx b/packages/apps/src/SideBar/index.tsx index 56b0c1e4c0..5374fd4282 100644 --- a/packages/apps/src/SideBar/index.tsx +++ b/packages/apps/src/SideBar/index.tsx @@ -49,8 +49,8 @@ function SideBar ({ className, collapse, handleResize, isCollapsed, isMenuOpen, return ( ) : ( diff --git a/packages/apps/src/overlays/Accounts.tsx b/packages/apps/src/overlays/Accounts.tsx index c0f8ace07f..49b5f48c17 100644 --- a/packages/apps/src/overlays/Accounts.tsx +++ b/packages/apps/src/overlays/Accounts.tsx @@ -32,8 +32,8 @@ function Accounts ({ className }: Props): React.ReactElement | null {

{t("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}

{t('Create an account now.')} diff --git a/packages/page-123code/src/AccountSelector.tsx b/packages/page-123code/src/AccountSelector.tsx index de34e60905..eb1ad90340 100644 --- a/packages/page-123code/src/AccountSelector.tsx +++ b/packages/page-123code/src/AccountSelector.tsx @@ -2,6 +2,9 @@ // This software may be modified and distributed under the terms // 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 styled from 'styled-components'; import { AccountIndex, Bubble, InputAddress } from '@polkadot/react-components'; diff --git a/packages/page-123code/src/SummaryBar.tsx b/packages/page-123code/src/SummaryBar.tsx index cf29ffaee4..e28c65006b 100644 --- a/packages/page-123code/src/SummaryBar.tsx +++ b/packages/page-123code/src/SummaryBar.tsx @@ -2,6 +2,9 @@ // This software may be modified and distributed under the terms // 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 { Balance, BlockNumber } from '@polkadot/types/interfaces'; @@ -35,7 +38,7 @@ function SummaryBar (): React.ReactElement { {validators && ( { validators.validators.map((accountId, index): React.ReactNode => ( - + )) } )} diff --git a/packages/page-accounts/src/Accounts/Account.tsx b/packages/page-accounts/src/Accounts/Account.tsx index 10c0acd262..20c4d3ccf6 100644 --- a/packages/page-accounts/src/Accounts/Account.tsx +++ b/packages/page-accounts/src/Accounts/Account.tsx @@ -229,12 +229,13 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr @@ -265,9 +265,9 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr {isForgetOpen && ( )} {isIdentityOpen && ( @@ -313,21 +313,27 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr {isEditingTags ? ( ) : ( -

+
{tags.length ? tags.map((tag): React.ReactNode => ( - + )) : } @@ -368,9 +374,9 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr } >
}> -

{t('accounts')}

+ +

{t('accounts')}

+ {t('type')} {t('tags')} {t('transactions')} diff --git a/packages/page-accounts/src/Accounts/modals/Backup.tsx b/packages/page-accounts/src/Accounts/modals/Backup.tsx index 2457be5af4..596d1c210e 100644 --- a/packages/page-accounts/src/Accounts/modals/Backup.tsx +++ b/packages/page-accounts/src/Accounts/modals/Backup.tsx @@ -68,8 +68,8 @@ function Backup ({ address, onClose }: Props): React.ReactElement { doBackup={_doBackup} isPassTouched={isPassTouched} isPassValid={isPassValid} - password={password} onChangePass={_onChangePass} + password={password} />
{ return ( <> {hasCode && ( @@ -88,6 +87,7 @@ function Contracts (props: Props): React.ReactElement { /> } + emptyText={t('No contracts available')} > {contracts.map((contract: ApiContract, index): React.ReactNode => ( {withTooltip && ( )} diff --git a/packages/page-contracts/src/Messages.tsx b/packages/page-contracts/src/Messages.tsx index 9dd77641c6..c7915d7860 100644 --- a/packages/page-contracts/src/Messages.tsx +++ b/packages/page-contracts/src/Messages.tsx @@ -56,8 +56,8 @@ function renderItem (props: Props, message: ContractABIMessage, index: number, a return (
{ {messages.map((_, index): React.ReactNode => renderMessage(props, index, t))} {isRemovable && ( )} diff --git a/packages/page-contracts/src/Modal.tsx b/packages/page-contracts/src/Modal.tsx index 6277cb19ca..697b9e07ef 100644 --- a/packages/page-contracts/src/Modal.tsx +++ b/packages/page-contracts/src/Modal.tsx @@ -85,14 +85,14 @@ class ContractModal

? '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.' )} + isDisabled={isBusy} + isRequired={this.isContract} label={t( this.isContract ? 'contract ABI' : 'contract ABI (optional)' )} onChange={this.onAddAbi} - isDisabled={isBusy} - isRequired={this.isContract} /> ); } diff --git a/packages/page-contracts/src/RemoveABI.tsx b/packages/page-contracts/src/RemoveABI.tsx index 80b6e7b812..16916cde10 100644 --- a/packages/page-contracts/src/RemoveABI.tsx +++ b/packages/page-contracts/src/RemoveABI.tsx @@ -41,10 +41,10 @@ function RemoveABI ({ code, onClose, onRemove }: Props): React.ReactElement