@@ -18,8 +18,9 @@ import {
18 AccessoryIcon,
18 AccessoryIcon,
19} from 'indigo-react';
19} from 'indigo-react';
20import { uniq } from 'lodash';
20import { uniq } from 'lodash';
21−import { fromWei, toWei, toBN } from 'web3-utils';
21+import { toWei, toBN } from 'web3-utils';
22import { FieldArray } from 'react-final-form-arrays';
22import { FieldArray } from 'react-final-form-arrays';
23+import { Field } from 'react-final-form';
24import { usePointCursor } from 'store/pointCursor';
25import { usePointCursor } from 'store/pointCursor';
25import { useNetwork } from 'store/network';
26import { useNetwork } from 'store/network';
@@ -43,8 +44,10 @@ import useMailer from 'lib/useMailer';
44import ProgressButton from 'components/ProgressButton';
45import ProgressButton from 'components/ProgressButton';
45import Highlighted from 'components/Highlighted';
46import Highlighted from 'components/Highlighted';
47+import { ForwardButton } from 'components/Buttons';
48+import NeedFundsNotice from 'components/NeedFundsNotice';
46import BridgeForm from 'form/BridgeForm';
50import BridgeForm from 'form/BridgeForm';
47−import { Field } from 'react-final-form';
48import { EmailInput } from 'form/Inputs';
51import { EmailInput } from 'form/Inputs';
50 buildEmailValidator,
53 buildEmailValidator,
@@ -59,9 +62,6 @@ import { WARNING, onlyHasWarning } from 'form/helpers';
59import useGasPrice from 'lib/useGasPrice';
62import useGasPrice from 'lib/useGasPrice';
60import timeout from 'lib/timeout';
63import timeout from 'lib/timeout';
62−import { ForwardButton } from 'components/Buttons';
63−import CopiableAddress from 'components/CopiableAddress';
65const INITIAL_VALUES = { emails: [''] };
65const INITIAL_VALUES = { emails: [''] };
67const GAS_LIMIT = GAS_LIMITS.GIFT_PLANET;
67const GAS_LIMIT = GAS_LIMITS.GIFT_PLANET;
@@ -603,17 +603,7 @@ export default function InviteEmail() {
603 {renderButton({ handleSubmit, fields })}
603 {renderButton({ handleSubmit, fields })}
605 {needFunds && (
605 {needFunds && (
606− <Grid.Item full>
606+ <Grid.Item full as={NeedFundsNotice} {...needFunds} />
607− <Highlighted warning>
608− Your ownership 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.
619 <Grid.Item full as={FormError} />
609 <Grid.Item full as={FormError} />