diff options
author | kumavis <aaron@kumavis.me> | 2018-05-17 02:57:07 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-05-17 02:57:07 +0800 |
commit | c27d9162d7001fa2bd6cfb98dd110716951d2d1b (patch) | |
tree | 19f5d4780b3ee82c0e9c9fe2a9c2edad745dd084 /ui/app/components/pages/unlock-page/unlock-page.container.js | |
parent | a1d13d45cf7451162b071e5507f1e31b12574e6e (diff) | |
parent | 6e79225dbff512ab9bcae2731bcfc4ce33e98664 (diff) | |
download | tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.gz tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.tar.zst tangerine-wallet-browser-c27d9162d7001fa2bd6cfb98dd110716951d2d1b.zip |
Merge branch 'develop' of github.com:MetaMask/metamask-extension into network-controller-remove-setNetworkEndpoints
Diffstat (limited to 'ui/app/components/pages/unlock-page/unlock-page.container.js')
-rw-r--r-- | ui/app/components/pages/unlock-page/unlock-page.container.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/ui/app/components/pages/unlock-page/unlock-page.container.js b/ui/app/components/pages/unlock-page/unlock-page.container.js new file mode 100644 index 000000000..9788a18ea --- /dev/null +++ b/ui/app/components/pages/unlock-page/unlock-page.container.js @@ -0,0 +1,33 @@ +import { connect } from 'react-redux' +import { withRouter } from 'react-router-dom' +import { compose } from 'recompose' + +const { + tryUnlockMetamask, + forgotPassword, + markPasswordForgotten, + setNetworkEndpoints, +} = require('../../../actions') + +import UnlockPage from './unlock-page.component' + +const mapStateToProps = state => { + const { metamask: { isUnlocked } } = state + return { + isUnlocked, + } +} + +const mapDispatchToProps = dispatch => { + return { + forgotPassword: () => dispatch(forgotPassword()), + tryUnlockMetamask: password => dispatch(tryUnlockMetamask(password)), + markPasswordForgotten: () => dispatch(markPasswordForgotten()), + setNetworkEndpoints: type => dispatch(setNetworkEndpoints(type)), + } +} + +export default compose( + withRouter, + connect(mapStateToProps, mapDispatchToProps) +)(UnlockPage) |