/ src / modules / Profile / Profile.container.js
Profile.container.js
 1  import { connect } from 'react-redux'
 2  
 3  import Profile from './Profile'
 4  import { toggleProfileModalAction } from './Profile.reducer'
 5  
 6  const mapStateToProps = state => state
 7  
 8  const mapDispatchToProps = dispatch => ({
 9    openModal: dapp => dispatch(toggleProfileModalAction(dapp)),
10  })
11  
12  export default connect(
13    mapStateToProps,
14    mapDispatchToProps,
15  )(Profile)