diff --git a/packages/app-accounts/src/modals/Create.tsx b/packages/app-accounts/src/modals/Create.tsx index d9b92881a8..cf7cbee976 100644 --- a/packages/app-accounts/src/modals/Create.tsx +++ b/packages/app-accounts/src/modals/Create.tsx @@ -13,7 +13,7 @@ import React from 'react'; import styled from 'styled-components'; import { DEV_PHRASE } from '@polkadot/keyring/defaults'; import { withApi, withMulti } from '@polkadot/ui-api'; -import { AddressRow, Button, Dropdown, Input, InputTags, Labelled, Modal, Password } from '@polkadot/ui-app'; +import { AddressRow, Button, Dropdown, Input, Labelled, Modal, Password } from '@polkadot/ui-app'; import { InputAddress } from '@polkadot/ui-app/InputAddress'; import keyring from '@polkadot/ui-keyring'; import uiSettings from '@polkadot/ui-settings'; @@ -151,7 +151,7 @@ class Create extends React.PureComponent { private renderInput () { const { t } = this.props; - const { address, deriveError, derivePath, isNameValid, isPassValid, isSeedValid, name, pairType, password, seed, seedOptions, seedType, tags } = this.state; + const { address, deriveError, derivePath, isNameValid, isPassValid, isSeedValid, name, pairType, password, seed, seedOptions, seedType } = this.state; const seedLabel = (() => { switch (seedType) { case 'bip': @@ -205,12 +205,6 @@ class Create extends React.PureComponent { onEnter={this.onCommit} value={password} /> -
{ this.nextState({ seed } as State); } - private onChangeTags = (tags: Array): void => { - this.setState({ tags }); - } - private onShowWarning = (): void => { this.nextState({ showWarning: true } as State); } diff --git a/packages/app-address-book/src/modals/Create.tsx b/packages/app-address-book/src/modals/Create.tsx index a6963ba468..631fa9f2ad 100644 --- a/packages/app-address-book/src/modals/Create.tsx +++ b/packages/app-address-book/src/modals/Create.tsx @@ -8,7 +8,7 @@ import { ModalProps } from '../types'; import React from 'react'; -import { AddressRow, Button, Input, InputTags, Modal } from '@polkadot/ui-app'; +import { AddressRow, Button, Input, Modal } from '@polkadot/ui-app'; import { InputAddress } from '@polkadot/ui-app/InputAddress'; import keyring from '@polkadot/ui-keyring'; @@ -76,7 +76,7 @@ class Create extends React.PureComponent { private renderContent () { const { t } = this.props; - const { address, isAddressValid, isNameValid, name, tags } = this.state; + const { address, isAddressValid, isNameValid, name } = this.state; return ( @@ -103,12 +103,6 @@ class Create extends React.PureComponent { onEnter={this.onCommit} value={name} /> - ); @@ -179,10 +173,6 @@ class Create extends React.PureComponent { this.nextState({ name } as State, true); } - private onChangeTags = (tags: Array): void => { - this.setState({ tags }); - } - private onCommit = (): void => { const { onClose, onStatusChange, t } = this.props; const { address, isAddressExisting, isValid, name, tags } = this.state; diff --git a/packages/app-contracts/src/Codes/Add.tsx b/packages/app-contracts/src/Codes/Add.tsx index 41468ad5fa..a9d7b6161d 100644 --- a/packages/app-contracts/src/Codes/Add.tsx +++ b/packages/app-contracts/src/Codes/Add.tsx @@ -53,7 +53,6 @@ class Add extends ContractModal { onChange={this.onValidateCode} /> {this.renderInputName()} - {this.renderInputTags()} {this.renderInputAbi()} ); diff --git a/packages/app-contracts/src/Codes/Upload.tsx b/packages/app-contracts/src/Codes/Upload.tsx index d66923a455..0546ab1c03 100644 --- a/packages/app-contracts/src/Codes/Upload.tsx +++ b/packages/app-contracts/src/Codes/Upload.tsx @@ -57,7 +57,6 @@ class Upload extends ContractModal { } /> {this.renderInputName()} - {this.renderInputTags()} {this.renderInputAbi()} {this.renderInputGas()} diff --git a/packages/app-contracts/src/Contracts/Add.tsx b/packages/app-contracts/src/Contracts/Add.tsx index 91fb107810..e19ac224f4 100644 --- a/packages/app-contracts/src/Contracts/Add.tsx +++ b/packages/app-contracts/src/Contracts/Add.tsx @@ -63,7 +63,6 @@ class Add extends ContractModal { onChange={this.onValidateAddr} /> {this.renderInputName()} - {this.renderInputTags()} {this.renderInputAbi()} ); diff --git a/packages/app-contracts/src/Deploy.tsx b/packages/app-contracts/src/Deploy.tsx index 8fb81c94e3..e64c2b3b7a 100644 --- a/packages/app-contracts/src/Deploy.tsx +++ b/packages/app-contracts/src/Deploy.tsx @@ -92,7 +92,6 @@ class Deploy extends ContractModal { value={codeHash} /> {this.renderInputName()} - {this.renderInputTags()} { isAbiSupplied ? null diff --git a/packages/app-contracts/src/Modal.tsx b/packages/app-contracts/src/Modal.tsx index 1a5d31a410..eb698a1370 100644 --- a/packages/app-contracts/src/Modal.tsx +++ b/packages/app-contracts/src/Modal.tsx @@ -7,7 +7,7 @@ import { I18nProps } from '@polkadot/ui-app/types'; import BN from 'bn.js'; import React from 'react'; import { Abi } from '@polkadot/api-contract'; -import { Button, Input, InputAddress, InputNumber, InputTags, Modal, TxComponent } from '@polkadot/ui-app'; +import { Button, Input, InputAddress, InputNumber, Modal, TxComponent } from '@polkadot/ui-app'; import ABI from './ABI'; @@ -147,21 +147,6 @@ class ContractModal

); } - protected renderInputTags () { - const { t } = this.props; - const { isBusy, tags } = this.state; - - return ( - - ); - } - protected renderInputGas () { const { t } = this.props; const { gasLimit, isBusy } = this.state; @@ -228,10 +213,6 @@ class ContractModal

this.setState({ name, isNameValid: name.length !== 0 }); } - protected onChangeTags = (tags: Array): void => { - this.setState({ tags }); - } - protected onChangeGas = (gasLimit: BN | undefined): void => { this.setState({ gasLimit: gasLimit || new BN(0) }); } diff --git a/packages/ui-app/src/Row.tsx b/packages/ui-app/src/Row.tsx index 8e4a9edcf3..b28a249e74 100644 --- a/packages/ui-app/src/Row.tsx +++ b/packages/ui-app/src/Row.tsx @@ -26,8 +26,11 @@ export const styles = ` } &.invalid { - filter: grayscale(100); - opacity: 0.5; + .ui--Row-accountId, + .ui--Row-icon { + filter: grayscale(100); + opacity: 0.5; + } } button.ui.icon.editButton {