-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LAPTOP-HBL4M4SL\rauld
committed
Sep 1, 2022
1 parent
3131f1d
commit 423b63e
Showing
14 changed files
with
232 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
import { injectIntl } from 'react-intl' | ||
import { compose, withProps } from 'recompose' | ||
import { bindActionCreators } from 'redux' | ||
import { connect } from 'react-redux' | ||
import withChainData from '../../../hocs/withChainData' | ||
import EncryptForm from './EncryptForm' | ||
import { setEncryptedWIF } from '../../../modules/generateEncryptedWIF' | ||
import { validatePassphraseLength } from '../../../core/wallet' | ||
|
||
export default injectIntl(EncryptForm) | ||
const actionCreators = { | ||
setEncryptedWIF, | ||
} | ||
|
||
const mapDispatchToProps = dispatch => | ||
bindActionCreators(actionCreators, dispatch) | ||
|
||
export default compose( | ||
connect( | ||
null, | ||
mapDispatchToProps, | ||
), | ||
withChainData(), | ||
withProps({ | ||
validatePassphraseLength, | ||
}), | ||
)(EncryptForm) |
Oops, something went wrong.