diff --git a/common/Root.tsx b/common/Root.tsx index 612523b9..bad06b74 100644 --- a/common/Root.tsx +++ b/common/Root.tsx @@ -13,7 +13,6 @@ import BroadcastTx from 'containers/Tabs/BroadcastTx'; import ErrorScreen from 'components/ErrorScreen'; import PageNotFound from 'components/PageNotFound'; import LogOutPrompt from 'components/LogOutPrompt'; -import { Aux } from 'components/ui'; import { Store } from 'redux'; import { pollOfflineStatus } from 'actions/config'; import { AppState } from 'reducers'; @@ -75,11 +74,11 @@ export default class Root extends Component { return ( - + {routes} - + ); diff --git a/common/components/AddressField.tsx b/common/components/AddressField.tsx index e1721703..ef6c90c2 100644 --- a/common/components/AddressField.tsx +++ b/common/components/AddressField.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { AddressFieldFactory } from './AddressFieldFactory'; import { donationAddressMap } from 'config/data'; -import { Aux } from 'components/ui'; interface Props { isReadOnly?: boolean; @@ -10,7 +9,7 @@ interface Props { export const AddressField: React.SFC = ({ isReadOnly }) => ( ( - + = ({ isReadOnly }) => ( {errorMsg} )} - + )} /> ); diff --git a/common/components/AmountField.tsx b/common/components/AmountField.tsx index aaaed0b0..3a215fe3 100644 --- a/common/components/AmountField.tsx +++ b/common/components/AmountField.tsx @@ -1,6 +1,5 @@ import React from 'react'; import { AmountFieldFactory } from './AmountFieldFactory'; -import { Aux } from 'components/ui'; import { UnitDropDown } from 'components'; import translate, { translateRaw } from 'translations'; @@ -17,7 +16,7 @@ export const AmountField: React.SFC = ({ }) => ( ( - +
= ({ /> {hasUnitDropdown && }
-
+ )} /> ); diff --git a/common/components/ConfirmationModal/components/Details/Addresses.tsx b/common/components/ConfirmationModal/components/Details/Addresses.tsx index d5d38b22..6d5936c8 100644 --- a/common/components/ConfirmationModal/components/Details/Addresses.tsx +++ b/common/components/ConfirmationModal/components/Details/Addresses.tsx @@ -1,6 +1,5 @@ import { getTransactionFields, makeTransaction } from 'libs/transaction'; import { SerializedTransaction } from 'components/renderCbs'; -import { Aux } from 'components/ui'; import ERC20 from 'libs/erc20'; import { From } from '../From'; import React, { Component } from 'react'; @@ -21,7 +20,7 @@ class AddressesClass extends Component { const { to, data } = getTransactionFields(transactionInstance); return ( - +
  • You are sending from {from}} />
  • @@ -32,7 +31,7 @@ class AddressesClass extends Component { {this.props.unit === 'ether' ? to : ERC20.transfer.decodeInput(data)._to} -
    + ); }} /> diff --git a/common/components/GasLimitField.tsx b/common/components/GasLimitField.tsx index 5b905d83..a70780fc 100644 --- a/common/components/GasLimitField.tsx +++ b/common/components/GasLimitField.tsx @@ -1,10 +1,9 @@ import React from 'react'; import { GasLimitFieldFactory } from './GasLimitFieldFactory'; import translate from 'translations'; -import { Aux } from 'components/ui'; export const GasLimitField: React.SFC<{}> = () => ( - + ( @@ -17,5 +16,5 @@ export const GasLimitField: React.SFC<{}> = () => ( /> )} /> - + ); diff --git a/common/components/NonceField/NonceInput.tsx b/common/components/NonceField/NonceInput.tsx index 2ca8668a..34b404d6 100644 --- a/common/components/NonceField/NonceInput.tsx +++ b/common/components/NonceField/NonceInput.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import { Aux } from 'components/ui'; import { Query } from 'components/renderCbs'; import Help from 'components/ui/Help'; import { getNonce, nonceRequestFailed } from 'selectors/transaction'; @@ -26,7 +25,7 @@ class NonceInputClass extends Component { public render() { const { nonce: { raw, value }, onChange, shouldDisplay } = this.props; const content = ( - + {nonceHelp} @@ -42,7 +41,7 @@ class NonceInputClass extends Component { /> )} /> - + ); return shouldDisplay ? content : null; diff --git a/common/components/SendButtonFactory/OnlineSend.tsx b/common/components/SendButtonFactory/OnlineSend.tsx index a319bc41..875d1f38 100644 --- a/common/components/SendButtonFactory/OnlineSend.tsx +++ b/common/components/SendButtonFactory/OnlineSend.tsx @@ -1,5 +1,4 @@ import React, { Component } from 'react'; -import { Aux } from 'components/ui'; import { ConfirmationModal } from 'components/ConfirmationModal'; import { getOffline } from 'selectors/config'; import { AppState } from 'reducers'; @@ -40,10 +39,10 @@ class OnlineSendClass extends Component { ) : null; return !this.props.offline ? ( - + {this.props.withProps({ onClick: this.openModal })} {displayModal} - + ) : null; } private openModal = () => { diff --git a/common/components/SendButtonFactory/SendButtonFactory.tsx b/common/components/SendButtonFactory/SendButtonFactory.tsx index 4af374b5..39338d68 100644 --- a/common/components/SendButtonFactory/SendButtonFactory.tsx +++ b/common/components/SendButtonFactory/SendButtonFactory.tsx @@ -1,5 +1,4 @@ import translate from 'translations'; -import { Aux } from 'components/ui'; import { getTransactionFields, makeTransaction } from 'libs/transaction'; import { OfflineBroadcast } from './OfflineBroadcast'; import { SerializedTransaction } from 'components/renderCbs'; @@ -33,7 +32,7 @@ class SendButtonFactoryClass extends Component { return ( ( - +
    )} diff --git a/common/containers/Tabs/SendTransaction/components/Fields/Fields.tsx b/common/containers/Tabs/SendTransaction/components/Fields/Fields.tsx index 7210301e..e5c49f9e 100644 --- a/common/containers/Tabs/SendTransaction/components/Fields/Fields.tsx +++ b/common/containers/Tabs/SendTransaction/components/Fields/Fields.tsx @@ -13,7 +13,7 @@ import { } from 'components'; import { OnlyUnlocked, WhenQueryExists } from 'components/renderCbs'; import translate from 'translations'; -import { Aux } from 'components/ui'; + import { AppState } from 'reducers'; import { NonStandardTransaction } from './components'; @@ -68,10 +68,10 @@ class FieldsClass extends Component { return ( + {shouldDisplay ? content : null} -
    + } /> ); diff --git a/common/containers/Tabs/Swap/components/LiteSend/Fields.tsx b/common/containers/Tabs/Swap/components/LiteSend/Fields.tsx index f3d99e29..6ae3cc1e 100644 --- a/common/containers/Tabs/Swap/components/LiteSend/Fields.tsx +++ b/common/containers/Tabs/Swap/components/LiteSend/Fields.tsx @@ -3,8 +3,6 @@ import { AmountFieldFactory } from 'components/AmountFieldFactory'; import { AddressFieldFactory } from 'components/AddressFieldFactory'; import { connect } from 'react-redux'; import { AppState } from 'reducers'; - -import { Aux } from 'components/ui'; import { GenerateTransaction, SendButton, SigningStatus, GasSlider } from 'components'; import { resetWallet, TResetWallet } from 'actions/wallet'; import translate from 'translations'; @@ -46,7 +44,7 @@ class FieldsClass extends Component { ( - + {!isValid && (
    WARNING: Your ether or token balance is not high enough to complete this @@ -61,7 +59,7 @@ class FieldsClass extends Component { readOnly={true} /> )} - + )} /> diff --git a/common/containers/Tabs/Swap/components/LiteSend/LiteSend.tsx b/common/containers/Tabs/Swap/components/LiteSend/LiteSend.tsx index 385a2dbe..0820ce6e 100644 --- a/common/containers/Tabs/Swap/components/LiteSend/LiteSend.tsx +++ b/common/containers/Tabs/Swap/components/LiteSend/LiteSend.tsx @@ -1,7 +1,6 @@ import React, { Component } from 'react'; import WalletDecrypt from 'components/WalletDecrypt'; import { OnlyUnlocked } from 'components/renderCbs'; -import { Aux } from 'components/ui'; import { Fields } from './Fields'; import { isUnlocked as isUnlockedSelector } from 'selectors/wallet'; import { getNetworkConfig } from 'selectors/config'; @@ -48,7 +47,7 @@ class LiteSendClass extends Component { renderMe = isUnlocked ? } /> : ; } - return {renderMe}; + return {renderMe}; } }