lbry-desktop/src/ui/modal/modalPhoneCollection/index.js

23 lines
524 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
2018-09-24 05:44:42 +02:00
import { selectPhoneToVerify, selectUser } from 'lbryinc';
2019-03-29 15:23:32 +01:00
import { navigate } from '@reach/router';
2018-04-18 06:03:01 +02:00
import ModalPhoneCollection from './view';
const select = state => ({
2018-01-15 14:32:01 +01:00
phone: selectPhoneToVerify(state),
user: selectUser(state),
});
const perform = dispatch => () => ({
closeModal: () => {
dispatch(doHideModal());
2019-03-29 15:23:32 +01:00
navigate('/$/rewards');
},
});
2018-09-24 05:44:42 +02:00
export default connect(
select,
perform
)(ModalPhoneCollection);