Browse Source

Update footer of add account import step

master
meriadec 7 years ago
parent
commit
f0f016b236
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 11
      src/components/modals/AddAccounts/steps/03-step-import.js

11
src/components/modals/AddAccounts/steps/03-step-import.js

@ -7,6 +7,7 @@ import uniq from 'lodash/uniq'
import { getBridgeForCurrency } from 'bridge' import { getBridgeForCurrency } from 'bridge'
import Box from 'components/base/Box' import Box from 'components/base/Box'
import CurrencyBadge from 'components/base/CurrencyBadge'
import Button from 'components/base/Button' import Button from 'components/base/Button'
import AccountsList from 'components/base/AccountsList' import AccountsList from 'components/base/AccountsList'
import IconExchange from 'icons/Exchange' import IconExchange from 'icons/Exchange'
@ -202,6 +203,7 @@ export const StepImportFooter = ({
onCloseModal, onCloseModal,
checkedAccountsIds, checkedAccountsIds,
scannedAccounts, scannedAccounts,
currency,
t, t,
}: StepProps) => { }: StepProps) => {
const willCreateAccount = checkedAccountsIds.some(id => { const willCreateAccount = checkedAccountsIds.some(id => {
@ -236,8 +238,11 @@ export const StepImportFooter = ({
const onClick = willClose ? onCloseModal : onClickAdd const onClick = willClose ? onCloseModal : onClickAdd
return ( return (
<Button primary disabled={scanStatus !== 'finished'} onClick={onClick}> <Fragment>
{ctaWording} {currency && <CurrencyBadge mr="auto" currency={currency} />}
</Button> <Button primary disabled={scanStatus !== 'finished'} onClick={onClick}>
{ctaWording}
</Button>
</Fragment>
) )
} }

Loading…
Cancel
Save