|
@ -6,6 +6,7 @@ const NewWalletPassword = ({ |
|
|
createWalletPassword, |
|
|
createWalletPassword, |
|
|
createWalletPasswordConfirmation, |
|
|
createWalletPasswordConfirmation, |
|
|
showCreateWalletPasswordConfirmationError, |
|
|
showCreateWalletPasswordConfirmationError, |
|
|
|
|
|
passwordMinCharsError, |
|
|
updateCreateWalletPassword, |
|
|
updateCreateWalletPassword, |
|
|
updateCreateWalletPasswordConfirmation |
|
|
updateCreateWalletPasswordConfirmation |
|
|
}) => ( |
|
|
}) => ( |
|
@ -14,7 +15,8 @@ const NewWalletPassword = ({ |
|
|
<input |
|
|
<input |
|
|
type="password" |
|
|
type="password" |
|
|
placeholder="Password" |
|
|
placeholder="Password" |
|
|
className={styles.password} |
|
|
className={`${styles.password} ${showCreateWalletPasswordConfirmationError && styles.error}
|
|
|
|
|
|
${passwordMinCharsError && styles.error}`}
|
|
|
value={createWalletPassword} |
|
|
value={createWalletPassword} |
|
|
onChange={event => updateCreateWalletPassword(event.target.value)} |
|
|
onChange={event => updateCreateWalletPassword(event.target.value)} |
|
|
/> |
|
|
/> |
|
@ -24,8 +26,8 @@ const NewWalletPassword = ({ |
|
|
<input |
|
|
<input |
|
|
type="password" |
|
|
type="password" |
|
|
placeholder="Confirm Password" |
|
|
placeholder="Confirm Password" |
|
|
className={`${styles.password} ${showCreateWalletPasswordConfirmationError && |
|
|
className={`${styles.password} ${showCreateWalletPasswordConfirmationError && styles.error}
|
|
|
styles.error}`}
|
|
|
${passwordMinCharsError && styles.error}`}
|
|
|
value={createWalletPasswordConfirmation} |
|
|
value={createWalletPasswordConfirmation} |
|
|
onChange={event => updateCreateWalletPasswordConfirmation(event.target.value)} |
|
|
onChange={event => updateCreateWalletPasswordConfirmation(event.target.value)} |
|
|
/> |
|
|
/> |
|
@ -35,6 +37,9 @@ const NewWalletPassword = ({ |
|
|
> |
|
|
> |
|
|
Passwords do not match |
|
|
Passwords do not match |
|
|
</p> |
|
|
</p> |
|
|
|
|
|
<p className={`${styles.helpMessage} ${passwordMinCharsError && styles.red}`}> |
|
|
|
|
|
Password must be at least 8 characters long |
|
|
|
|
|
</p> |
|
|
</section> |
|
|
</section> |
|
|
</div> |
|
|
</div> |
|
|
) |
|
|
) |
|
@ -43,6 +48,7 @@ NewWalletPassword.propTypes = { |
|
|
createWalletPassword: PropTypes.string.isRequired, |
|
|
createWalletPassword: PropTypes.string.isRequired, |
|
|
createWalletPasswordConfirmation: PropTypes.string.isRequired, |
|
|
createWalletPasswordConfirmation: PropTypes.string.isRequired, |
|
|
showCreateWalletPasswordConfirmationError: PropTypes.bool.isRequired, |
|
|
showCreateWalletPasswordConfirmationError: PropTypes.bool.isRequired, |
|
|
|
|
|
passwordMinCharsError: PropTypes.bool.isRequired, |
|
|
updateCreateWalletPassword: PropTypes.func.isRequired, |
|
|
updateCreateWalletPassword: PropTypes.func.isRequired, |
|
|
updateCreateWalletPasswordConfirmation: PropTypes.func.isRequired |
|
|
updateCreateWalletPasswordConfirmation: PropTypes.func.isRequired |
|
|
} |
|
|
} |
|
|