mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
c1e3c229bc
See [`import/order`](https://eslint.org/docs/rules/import/order) for more information. This change enables `import/order` and fixes the issues raised by the rule.
25 lines
526 B
JavaScript
25 lines
526 B
JavaScript
import { compose } from 'redux'
|
|
import { connect } from 'react-redux'
|
|
import { withRouter } from 'react-router-dom'
|
|
import { lockMetamask } from '../../store/actions'
|
|
import Lock from './lock.component'
|
|
|
|
const mapStateToProps = (state) => {
|
|
const { metamask: { isUnlocked } } = state
|
|
|
|
return {
|
|
isUnlocked,
|
|
}
|
|
}
|
|
|
|
const mapDispatchToProps = (dispatch) => {
|
|
return {
|
|
lockMetamask: () => dispatch(lockMetamask()),
|
|
}
|
|
}
|
|
|
|
export default compose(
|
|
withRouter,
|
|
connect(mapStateToProps, mapDispatchToProps),
|
|
)(Lock)
|