Drop warning (#2554)

This commit is contained in:
Jaco Greeff 2020-04-11 21:19:21 +02:00 committed by GitHub
parent 6a4061ae44
commit 73b979cb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -3,19 +3,18 @@
// of the Apache-2.0 license. See the LICENSE file for details.
import React, { useState } from 'react';
import { Icon, InputAddress, Modal, TxButton } from '@polkadot/react-components';
import { InputAddress, Modal, TxButton } from '@polkadot/react-components';
import { useTranslation } from '../../translate';
import InputValidationController from './InputValidationController';
interface Props {
defaultControllerId: string;
isValidating?: boolean;
onClose: () => void;
stashId: string;
}
function SetControllerAccount ({ defaultControllerId, isValidating, onClose, stashId }: Props): React.ReactElement<Props> {
function SetControllerAccount ({ defaultControllerId, onClose, stashId }: Props): React.ReactElement<Props> {
const { t } = useTranslation();
const [, setControllerError] = useState<string | null>(null);
const [controllerId, setControllerId] = useState<string | null>(null);
@ -27,14 +26,6 @@ function SetControllerAccount ({ defaultControllerId, isValidating, onClose, sta
size='small'
>
<Modal.Content className='ui--signer-Signer-Content'>
{isValidating && (
<article className='warning'>
<div className='warning'>
<Icon name='warning sign' />
{t('Warning - Changing the controller while validating will modify the associated session account. It is advised to stop validating before changing the controller account.')}
</div>
</article>
)}
<InputAddress
className='medium'
isDisabled

View File

@ -173,7 +173,6 @@ function Account ({ allStashes, className, isDisabled, isOwnStash, next, onUpdat
{isSetControllerOpen && controllerId && (
<SetControllerAccount
defaultControllerId={controllerId}
isValidating={isStashValidating}
onClose={toggleSetController}
stashId={stashId}
/>