diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-05-11 07:51:26 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-05-12 03:49:17 +0800 |
commit | 2381c0e0f461304265279155176fa655e2eb97b4 (patch) | |
tree | c0053ef5a62ee246bf02bc2cf7cfe6dae50ed3c9 /ui/app/components/pages/unlock-page/unlock-page.container.js | |
parent | 76ab5c04fae20dc0fd2798ad8a336a0364032aff (diff) | |
download | tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.gz tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.zst tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.zip |
Add new unlock screen design
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) |