import React, { Component } from 'react'; import { connect } from 'react-redux'; import { isAnyOfflineWithWeb3 } from 'selectors/derived'; import { AddressField, AmountField, TXMetaDataPanel, SendEverything, CurrentCustomMessage, GenerateTransaction, SendButton, SigningStatus } from 'components'; import { OnlyUnlocked, WhenQueryExists } from 'components/renderCbs'; import translate from 'translations'; import { AppState } from 'reducers'; import { NonStandardTransaction } from './components'; const content = (
); const QueryWarning: React.SFC<{}> = () => (

{translate('WARN_Send_Link')}

} /> ); interface StateProps { shouldDisplay: boolean; } class FieldsClass extends Component { public render() { const { shouldDisplay } = this.props; return ( {shouldDisplay ? content : null} } /> ); } } export const Fields = connect((state: AppState) => ({ shouldDisplay: !isAnyOfflineWithWeb3(state) }))(FieldsClass);