Browse Source

bold the step 3

master
Gaëtan Renaudeau 7 years ago
parent
commit
4107ab372b
  1. 25
      src/components/modals/AddAccounts/steps/03-step-import.js
  2. 4
      static/i18n/en/app.yml

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

@ -2,6 +2,7 @@
import invariant from 'invariant' import invariant from 'invariant'
import styled from 'styled-components' import styled from 'styled-components'
import { Trans } from 'react-i18next'
import React, { PureComponent, Fragment } from 'react' import React, { PureComponent, Fragment } from 'react'
import type { Account } from '@ledgerhq/live-common/lib/types' import type { Account } from '@ledgerhq/live-common/lib/types'
import uniq from 'lodash/uniq' import uniq from 'lodash/uniq'
@ -16,6 +17,7 @@ import AccountsList from 'components/base/AccountsList'
import IconExclamationCircleThin from 'icons/ExclamationCircleThin' import IconExclamationCircleThin from 'icons/ExclamationCircleThin'
import TranslatedError from '../../../TranslatedError' import TranslatedError from '../../../TranslatedError'
import Spinner from '../../../base/Spinner' import Spinner from '../../../base/Spinner'
import Text from '../../../base/Text'
import type { StepProps } from '../index' import type { StepProps } from '../index'
@ -249,11 +251,24 @@ class StepImport extends PureComponent<StepProps> {
autoFocusFirstInput={importableAccounts.length === 0} autoFocusFirstInput={importableAccounts.length === 0}
title={t('app:addAccounts.createNewAccount.title')} title={t('app:addAccounts.createNewAccount.title')}
emptyText={ emptyText={
alreadyEmptyAccount alreadyEmptyAccount ? (
? t('app:addAccounts.createNewAccount.noOperationOnLastAccount', { <Trans
accountName: alreadyEmptyAccount.name, i18nKey="app:addAccounts.createNewAccount.noOperationOnLastAccount"
}) parent="div"
: t('app:addAccounts.createNewAccount.noAccountToCreate', { currencyName }) >
{' '}
<Text ff="Open Sans|SemiBold" color="dark">
{alreadyEmptyAccount.name}
</Text>{' '}
</Trans>
) : (
<Trans i18nKey="app:addAccounts.createNewAccount.noAccountToCreate" parent="div">
{' '}
<Text ff="Open Sans|SemiBold" color="dark">
{currencyName}
</Text>{' '}
</Trans>
)
} }
accounts={creatableAccounts} accounts={creatableAccounts}
checkedIds={checkedAccountsIds} checkedIds={checkedAccountsIds}

4
static/i18n/en/app.yml

@ -159,8 +159,8 @@ addAccounts:
# success_plural: Accounts successfully added to your portfolio. # success_plural: Accounts successfully added to your portfolio.
createNewAccount: createNewAccount:
title: Create a new account title: Create a new account
noOperationOnLastAccount: 'You have to receive crypto assets on {{accountName}} before you can create a new account.' noOperationOnLastAccount: 'You have to receive crypto assets on <1><0>{{accountName}}</0></1> before you can create a new account.'
noAccountToCreate: No {{currencyName}} account was found to create noAccountToCreate: No <1><0>{{currencyName}}</0></1> account was found to create
somethingWentWrong: Something went wrong during synchronization, please try again. somethingWentWrong: Something went wrong during synchronization, please try again.
cta: cta:
addMore: 'Add more' addMore: 'Add more'

Loading…
Cancel
Save