import { connect } from 'react-redux' ; import { changePassword } from 'modules/account/actions' ; import ChangePasswordButton from 'components/ChangePasswordButton' ; const mapStateToProps = ( state , ownProps ) => { return { buttonWidth : ownProps . buttonWidth , recenter : ownProps . recenter , } ; } ; const mapDispatchToProps = ( dispatch , ownProps ) => { return { onPress : ( account ) => dispatch ( changePassword . started ( account ) ) , } ; } ; export default connect ( mapStateToProps , mapDispatchToProps ) ( ChangePasswordButton ) ;