2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:25:22 -04:00
|
|
|
import { doHideNotification } from 'lbry-redux';
|
2018-09-23 23:44:42 -04:00
|
|
|
import { selectPhoneToVerify, selectUser } from 'lbryinc';
|
2018-01-15 05:32:01 -08:00
|
|
|
import { doNavigate } from 'redux/actions/navigation';
|
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 => () => ({
|
|
|
|
closeModal: () => {
|
2018-10-29 13:25:22 -04:00
|
|
|
dispatch(doHideNotification());
|
2018-01-15 05:32:01 -08:00
|
|
|
dispatch(doNavigate('/rewards'));
|
2017-12-07 13:07:30 -05:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2018-09-23 23:44:42 -04:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ModalPhoneCollection);
|