mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
92971d3c87
* Update eslint-plugin-import version * Convert JS files to use ESM * Update ESLint rules to check imports * Fix test:unit:global command env * Cleanup mock-dev script
21 lines
823 B
JavaScript
21 lines
823 B
JavaScript
import { connect } from 'react-redux'
|
|
import * as actions from '../../store/actions'
|
|
import { getCurrentViewContext } from '../../selectors/selectors'
|
|
import CreateAccountPage from './create-account.component'
|
|
|
|
const mapStateToProps = state => ({
|
|
displayedForm: getCurrentViewContext(state),
|
|
})
|
|
|
|
const mapDispatchToProps = dispatch => ({
|
|
displayForm: form => dispatch(actions.setNewAccountForm(form)),
|
|
showQrView: (selected, identity) => dispatch(actions.showQrView(selected, identity)),
|
|
showExportPrivateKeyModal: () => {
|
|
dispatch(actions.showModal({ name: 'EXPORT_PRIVATE_KEY' }))
|
|
},
|
|
hideModal: () => dispatch(actions.hideModal()),
|
|
setAccountLabel: (address, label) => dispatch(actions.setAccountLabel(address, label)),
|
|
})
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(CreateAccountPage)
|