From 73b979cb6ba280ec9ec592e767f66a0af52a9bec Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 11 Apr 2020 21:19:21 +0200 Subject: [PATCH] Drop warning (#2554) --- .../src/Actions/Account/SetControllerAccount.tsx | 13 ++----------- packages/page-staking/src/Actions/Account/index.tsx | 1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx b/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx index 11ddf088fe..b5c7958de7 100644 --- a/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx +++ b/packages/page-staking/src/Actions/Account/SetControllerAccount.tsx @@ -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 { +function SetControllerAccount ({ defaultControllerId, onClose, stashId }: Props): React.ReactElement { const { t } = useTranslation(); const [, setControllerError] = useState(null); const [controllerId, setControllerId] = useState(null); @@ -27,14 +26,6 @@ function SetControllerAccount ({ defaultControllerId, isValidating, onClose, sta size='small' > - {isValidating && ( -
-
- - {t('Warning - Changing the controller while validating will modify the associated session account. It is advised to stop validating before changing the controller account.')} -
-
- )}