2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectPhoneToVerify, selectUser } from 'redux/selectors/user';
|
2018-04-18 00:03:01 -04:00
|
|
|
import ModalPhoneCollection from './view';
|
2017-12-07 13:07:30 -05:00
|
|
|
|
|
|
|
const select = state => ({
|
2018-01-15 05:32:01 -08:00
|
|
|
phone: selectPhoneToVerify(state),
|
2017-12-07 13:07:30 -05:00
|
|
|
user: selectUser(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => () => ({
|
2019-04-04 17:05:23 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2017-12-07 13:07:30 -05:00
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, perform)(ModalPhoneCollection);
|