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

1
static/i18n/en/onboarding.yml

@ -87,7 +87,6 @@ genuineCheck:
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
isGenuinePassed: Your Nano S is genuine
isGenuineUnavailable: Server problem
buttons:
genuineCheck: Genuine check
contactSupport: Contact Support

Loading…
Cancel
Save