Browse Source

For better precision, all error should use TranslatedError

and we should always keep the Error objects, not booleans
master
Gaëtan Renaudeau 7 years ago
parent
commit
cb78ddb926
  1. 5
      src/components/Onboarding/steps/GenuineCheck.js
  2. 1
      static/i18n/en/onboarding.yml

5
src/components/Onboarding/steps/GenuineCheck.js

@ -15,6 +15,7 @@ import FakeLink from 'components/base/FakeLink'
import Button from 'components/base/Button' import Button from 'components/base/Button'
import RadioGroup from 'components/base/RadioGroup' import RadioGroup from 'components/base/RadioGroup'
import GenuineCheckModal from 'components/GenuineCheckModal' import GenuineCheckModal from 'components/GenuineCheckModal'
import TranslatedError from 'components/TranslatedError'
import IconLedgerNanoError from 'icons/illustrations/LedgerNanoError' import IconLedgerNanoError from 'icons/illustrations/LedgerNanoError'
import IconLedgerBlueError from 'icons/illustrations/LedgerBlueError' import IconLedgerBlueError from 'icons/illustrations/LedgerBlueError'
@ -226,8 +227,8 @@ class GenuineCheck extends PureComponent<StepProps, State> {
) : genuine.genuineCheckUnavailable ? ( ) : genuine.genuineCheckUnavailable ? (
<Box horizontal align="center" flow={1} color={colors.alertRed}> <Box horizontal align="center" flow={1} color={colors.alertRed}>
<IconCross size={16} /> <IconCross size={16} />
<Box ff="Open Sans|Regular" fontSize={4}> <Box ff="Open Sans|Regular" fontSize={4} style={{ maxWidth: '200px' }}>
{t('onboarding:genuineCheck.isGenuineUnavailable')} <TranslatedError error={genuine.genuineCheckUnavailable} />
<FakeLink <FakeLink
color="alertRed" color="alertRed"
underline underline

1
static/i18n/en/onboarding.yml

@ -87,7 +87,6 @@ genuineCheck:
title: Check if your Ledger device is genuine title: Check if your Ledger device is genuine
desc: This is a long text, please replace it with the final wording once it’s done. Lorem ipsum dolor amet ledger lorem dolor desc: This is a long text, please replace it with the final wording once it’s done. Lorem ipsum dolor amet ledger lorem dolor
isGenuinePassed: Your Nano S is genuine isGenuinePassed: Your Nano S is genuine
isGenuineUnavailable: Server problem
buttons: buttons:
genuineCheck: Genuine check genuineCheck: Genuine check
contactSupport: Contact Support contactSupport: Contact Support

Loading…
Cancel
Save