@ -7,8 +7,12 @@ import FormContainer from './FormContainer'
importAliasfrom'./Alias'
importAutopilotfrom'./Autopilot'
importInitWalletfrom'./InitWallet'
importLoginfrom'./Login'
importSignupfrom'./Signup'
importNewWalletSeedfrom'./NewWalletSeed'
importReEnterSeedfrom'./ReEnterSeed'
importNewWalletPasswordfrom'./NewWalletPassword'
importNewAezeedPasswordfrom'./NewAezeedPassword'
importstylesfrom'./Onboarding.scss'
constOnboarding=({
@ -18,7 +22,8 @@ const Onboarding = ({
autopilot,
startingLnd,
createWalletPassword,
seed
seed,
aezeedPassword
},
changeStep,
startLnd,
@ -27,7 +32,9 @@ const Onboarding = ({
initWalletProps,
autopilotProps,
newWalletSeedProps,
newWalletPasswordProps
newWalletPasswordProps,
newAezeedPasswordProps,
reEnterSeedProps
})=>{
constrenderStep=()=>{
switch(step){
@ -56,34 +63,67 @@ const Onboarding = ({
case3:
return(
<FormContainer
title='Welcome!'
title='Welcome back!'
description='Enter your wallet password or create a new wallet'// eslint-disable-line
back={()=>changeStep(2)}
back={null}
next={null}
>
<InitWallet{...initWalletProps}/>
<Login{...initWalletProps.loginProps}/>
</FormContainer>
)
case4:
return(
<FormContainer
title='Save your wallet seed'
description='Please save these 24 words securely! This will allow you to recover your wallet in the future'// eslint-disable-line
back={()=>changeStep(3)}
title='Welcome!'
description='Looks like you are new here. Set a password to encrypt your wallet. This password will be needed to unlock Zap in the future'// eslint-disable-line
back={null}
next={()=>changeStep(5)}
>
<NewWalletSeed{...newWalletSeedProps}/>
<NewWalletPassword{...newWalletPasswordProps}/>
</FormContainer>
)
case5:
return(
<FormContainer
title='Set your password'
description='Choose a password to encrypt your wallet'// eslint-disable-line
title={'Alright, let\'s get set up'}
description='Would you like to create a new wallet or import an existing one?'// eslint-disable-line