@@ -18,8 +18,9 @@ import {
1818 AccessoryIcon,
1919} from 'indigo-react';
2020import { uniq } from 'lodash';
21−import { fromWei, toWei, toBN } from 'web3-utils';
21+import { toWei, toBN } from 'web3-utils';
2222import { FieldArray } from 'react-final-form-arrays';
23+import { Field } from 'react-final-form';
2324
2425import { usePointCursor } from 'store/pointCursor';
2526import { useNetwork } from 'store/network';
@@ -43,8 +44,10 @@ import useMailer from 'lib/useMailer';
4344
4445import ProgressButton from 'components/ProgressButton';
4546import Highlighted from 'components/Highlighted';
47+import { ForwardButton } from 'components/Buttons';
48+import NeedFundsNotice from 'components/NeedFundsNotice';
49+
4650import BridgeForm from 'form/BridgeForm';
47−import { Field } from 'react-final-form';
4851import { EmailInput } from 'form/Inputs';
4952import {
5053 buildEmailValidator,
@@ -59,9 +62,6 @@ import { WARNING, onlyHasWarning } from 'form/helpers';
5962import useGasPrice from 'lib/useGasPrice';
6063import timeout from 'lib/timeout';
6164
62−import { ForwardButton } from 'components/Buttons';
63−import CopiableAddress from 'components/CopiableAddress';
64−
6565const INITIAL_VALUES = { emails: [''] };
6666
6767const GAS_LIMIT = GAS_LIMITS.GIFT_PLANET;
@@ -603,17 +603,7 @@ export default function InviteEmail() {
603603 {renderButton({ handleSubmit, fields })}
604604
605605 {needFunds && (
606− <Grid.Item full>
607− <Highlighted warning>
608− Your ownership address{' '}
609− <CopiableAddress>
610− {needFunds.address}
611− </CopiableAddress>{' '}
612− needs at least {fromWei(needFunds.minBalance)} ETH
613− and currently has {fromWei(needFunds.balance)} ETH.
614− Waiting until the account has enough funds.
615− </Highlighted>
616− </Grid.Item>
606+ <Grid.Item full as={NeedFundsNotice} {...needFunds} />
617607 )}
618608
619609 <Grid.Item full as={FormError} />