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.
52 lines
1.2 KiB
52 lines
1.2 KiB
import React, { Component } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Isvg from 'react-inlinesvg'
|
|
import zapLogo from 'icons/zap_logo.svg'
|
|
|
|
import FormContainer from './FormContainer'
|
|
import Alias from './Alias'
|
|
import Syncing from './Syncing'
|
|
import styles from './Onboarding.scss'
|
|
|
|
|
|
class Onboarding extends Component {
|
|
render() {
|
|
const {
|
|
onboarding: {
|
|
step
|
|
},
|
|
syncingProps
|
|
} = this.props
|
|
|
|
const renderStep = () => {
|
|
console.log('step: ', step)
|
|
switch(step) {
|
|
case 1:
|
|
return (
|
|
<FormContainer
|
|
title={'1. What should we call you?'}
|
|
description={'Set your nickname to help others connect with you on the Lightning Network'}
|
|
back={null}
|
|
next={() => console.log('alias next')}
|
|
>
|
|
<Alias />
|
|
</FormContainer>
|
|
)
|
|
default:
|
|
return <Syncing {...syncingProps} />
|
|
}
|
|
}
|
|
|
|
return (
|
|
<div className={styles.container}>
|
|
{renderStep()}
|
|
</div>
|
|
)
|
|
}
|
|
}
|
|
|
|
Onboarding.propTypes = {
|
|
syncingProps: PropTypes.object.isRequired
|
|
}
|
|
|
|
export default Onboarding
|
|
|