Valentin D. Pinkman
6 years ago
3 changed files with 91 additions and 1 deletions
@ -0,0 +1,82 @@ |
|||
// @flow
|
|||
import React, { PureComponent } from 'react' |
|||
import { translate } from 'react-i18next' |
|||
import { colors } from 'styles/theme' |
|||
import { i } from 'helpers/staticPath' |
|||
|
|||
import Box from 'components/base/Box' |
|||
|
|||
import type { T } from 'types/common' |
|||
|
|||
import IconChevronRight from 'icons/ChevronRight' |
|||
|
|||
import { IconOptionRow, DisclaimerBox, OptionRow, Inner } from '../../helperComponents' |
|||
|
|||
type Props = { |
|||
t: T, |
|||
} |
|||
|
|||
class SelectPINrestoreNanoX extends PureComponent<Props, *> { |
|||
render() { |
|||
const { t } = this.props |
|||
|
|||
const stepsLedgerNano = [ |
|||
{ |
|||
key: 'step1', |
|||
icon: <IconOptionRow>{'1.'}</IconOptionRow>, |
|||
desc: t('onboarding.selectPIN.restore.instructions.nanoX.step1'), |
|||
}, |
|||
{ |
|||
key: 'step2', |
|||
icon: <IconOptionRow>{'2.'}</IconOptionRow>, |
|||
desc: t('onboarding.selectPIN.restore.instructions.nanoX.step2'), |
|||
}, |
|||
{ |
|||
key: 'step3', |
|||
icon: <IconOptionRow>{'3.'}</IconOptionRow>, |
|||
desc: t('onboarding.selectPIN.restore.instructions.nanoX.step3'), |
|||
}, |
|||
{ |
|||
key: 'step4', |
|||
icon: <IconOptionRow>{'4.'}</IconOptionRow>, |
|||
desc: t('onboarding.selectPIN.restore.instructions.nanoX.step4'), |
|||
}, |
|||
{ |
|||
key: 'step5', |
|||
icon: <IconOptionRow>{'5.'}</IconOptionRow>, |
|||
desc: t('onboarding.selectPIN.restore.instructions.nanoX.step5'), |
|||
}, |
|||
] |
|||
const disclaimerNotes = [ |
|||
{ |
|||
key: 'note1', |
|||
icon: <IconChevronRight size={12} style={{ color: colors.smoke }} />, |
|||
desc: t('onboarding.selectPIN.disclaimer.note1'), |
|||
}, |
|||
{ |
|||
key: 'note2', |
|||
icon: <IconChevronRight size={12} style={{ color: colors.smoke }} />, |
|||
desc: t('onboarding.selectPIN.disclaimer.note2'), |
|||
}, |
|||
{ |
|||
key: 'note3', |
|||
icon: <IconChevronRight size={12} style={{ color: colors.smoke }} />, |
|||
desc: t('onboarding.selectPIN.disclaimer.note3'), |
|||
}, |
|||
] |
|||
|
|||
return ( |
|||
<Box align="center" mt={3}> |
|||
<Inner style={{ width: 700 }}> |
|||
<img alt="" src={i('select-pin-nano-x-onb.svg')} /> |
|||
<Box shrink grow flow={4} style={{ marginLeft: 40 }}> |
|||
{stepsLedgerNano.map(step => <OptionRow key={step.key} step={step} />)} |
|||
</Box> |
|||
</Inner> |
|||
<DisclaimerBox mt={6} disclaimerNotes={disclaimerNotes} /> |
|||
</Box> |
|||
) |
|||
} |
|||
} |
|||
|
|||
export default translate()(SelectPINrestoreNanoX) |
Loading…
Reference in new issue