on c19b2a8 help sign in
bridge/src/components/NeedFundsNotice.js
25 lines 737 B history raw
1import React from 'react';
2import { fromWei, toBN } from 'web3-utils';
4import Highlighted from './Highlighted';
5import CopiableAddress from './CopiableAddress';
6import WarningBox from './WarningBox';
7import Blinky from './Blinky';
9export default function NeedFundsNotice({
10 address,
11 minBalance,
12 balance,
13 ...rest
14}) {
15 return (
16 <WarningBox {...rest}>
17 <Highlighted warning>
18 Your ownership address <CopiableAddress>{address}</CopiableAddress>{' '}
19 needs at least {fromWei(toBN(minBalance))} ETH and currently has{' '}
20 {fromWei(toBN(balance))} ETH. The transaction will automatically resume
21 once enough ETH is available. Waiting... <Blinky />
22 </Highlighted>
23 </WarningBox>
24 );