This repository was archived by the owner on Jan 22, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
packages/blockchain-wallet-v4-frontend/src/modals/Settings/SecondPassword Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react'
22import { connect } from 'react-redux'
33import { bindActionCreators , compose } from 'redux'
4+
45import { actions , selectors } from 'data'
6+ import { Types } from 'blockchain-wallet-v4'
7+
58import modalEnhancer from 'providers/ModalEnhancer'
69import SecondPassword from './template.js'
7- import { Types } from 'blockchain-wallet-v4'
810import * as C from 'services/AlertService'
911
1012class SecondPasswordContainer extends React . PureComponent {
1113 state = { secondPassword : '' }
1214
13- handleSubmit = ( ) => {
15+ handleSubmit = e => {
16+ e . preventDefault ( )
1417 if (
1518 Types . Wallet . isValidSecondPwd (
1619 this . state . secondPassword ,
Original file line number Diff line number Diff line change 11import React from 'react'
22import PropTypes from 'prop-types'
3+ import { reduxForm } from 'redux-form'
34import { FormattedMessage } from 'react-intl'
45
56import {
@@ -12,14 +13,15 @@ import {
1213 PasswordInput ,
1314 Text
1415} from 'blockchain-info-components'
16+ import { Form } from 'components/Form'
1517
1618const SecondPassword = props => {
1719 const { position, total, close, ...rest } = props
1820 const { handleSubmit, handleChange, value } = rest
1921
2022 return (
2123 < Modal size = 'medium' position = { position } total = { total } closeButton = { false } >
22- < form onSubmit = { handleSubmit } >
24+ < Form onSubmit = { handleSubmit } >
2325 < ModalHeader icon = 'safe' onClose = { close } >
2426 < FormattedMessage
2527 id = 'modals.secondpassword.title'
@@ -63,7 +65,7 @@ const SecondPassword = props => {
6365 />
6466 </ Button >
6567 </ ModalFooter >
66- </ form >
68+ </ Form >
6769 </ Modal >
6870 )
6971}
@@ -73,4 +75,4 @@ SecondPassword.propTypes = {
7375 handleSubmit : PropTypes . func . isRequired
7476}
7577
76- export default SecondPassword
78+ export default reduxForm ( { form : 'secondPassword' } ) ( SecondPassword )
You can’t perform that action at this time.
0 commit comments