You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.7 KiB
57 lines
1.7 KiB
// @flow
|
|
|
|
import React, { Fragment } from 'react'
|
|
import { i } from 'helpers/staticPath'
|
|
|
|
import type { T } from 'types/common'
|
|
|
|
import Box from 'components/base/Box'
|
|
import Button from 'components/base/Button'
|
|
|
|
import { Title, Description, OnboardingFooterWrapper } from '../../helperComponents'
|
|
|
|
export function GenuineCheckErrorPage({
|
|
redoGenuineCheck,
|
|
contactSupport,
|
|
isLedgerNano,
|
|
t,
|
|
}: {
|
|
redoGenuineCheck: () => void,
|
|
contactSupport: () => void,
|
|
isLedgerNano: boolean | null,
|
|
t: T,
|
|
}) {
|
|
return (
|
|
<Box sticky pt={50}>
|
|
<Box grow alignItems="center" justifyContent="center">
|
|
{isLedgerNano ? (
|
|
<Fragment>
|
|
<Title>{t('onboarding:genuineCheck.errorPage.ledgerNano.title')}</Title>
|
|
<Description>{t('onboarding:genuineCheck.errorPage.ledgerNano.desc')}</Description>
|
|
<Box mt={5} mr={7}>
|
|
<img alt="" src={i('nano-error-onb.svg')} />
|
|
</Box>
|
|
</Fragment>
|
|
) : (
|
|
<Fragment>
|
|
<Title>{t('onboarding:genuineCheck.errorPage.ledgerBlue.title')}</Title>
|
|
<Description pb={5}>
|
|
{t('onboarding:genuineCheck.errorPage.ledgerBlue.desc')}
|
|
</Description>
|
|
<Box alignItems="center">
|
|
<img alt="" src={i('blue-error-onb.svg')} />
|
|
</Box>
|
|
</Fragment>
|
|
)}
|
|
</Box>
|
|
<OnboardingFooterWrapper>
|
|
<Button padded outlineGrey onClick={() => redoGenuineCheck()}>
|
|
{t('app:common.back')}
|
|
</Button>
|
|
<Button padded danger onClick={() => contactSupport()} ml="auto">
|
|
{t('onboarding:genuineCheck.buttons.contactSupport')}
|
|
</Button>
|
|
</OnboardingFooterWrapper>
|
|
</Box>
|
|
)
|
|
}
|
|
|