2017-12-21 22:08:54 +01:00
|
|
|
import React from 'react';
|
|
|
|
import * as settings from 'constants/settings';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { doCloseModal } from 'redux/actions/app';
|
|
|
|
import { doSetClientSetting } from 'redux/actions/settings';
|
2018-01-15 14:32:01 +01:00
|
|
|
import { selectPhoneToVerify, selectUser } from 'redux/selectors/user';
|
|
|
|
import { doNavigate } from 'redux/actions/navigation';
|
2018-04-18 06:03:01 +02:00
|
|
|
import ModalPhoneCollection from './view';
|
2017-12-07 19:07:30 +01:00
|
|
|
|
|
|
|
const select = state => ({
|
2018-01-15 14:32:01 +01:00
|
|
|
phone: selectPhoneToVerify(state),
|
2017-12-07 19:07:30 +01:00
|
|
|
user: selectUser(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => () => ({
|
|
|
|
closeModal: () => {
|
|
|
|
dispatch(doCloseModal());
|
2018-01-15 14:32:01 +01:00
|
|
|
dispatch(doNavigate('/rewards'));
|
2017-12-07 19:07:30 +01:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2018-01-11 07:00:51 +01:00
|
|
|
export default connect(select, perform)(ModalPhoneCollection);
|