lbry-desktop/src/renderer/modal/modalPhoneCollection/index.js
2018-09-23 23:44:42 -04:00

23 lines
554 B
JavaScript

import { connect } from 'react-redux';
import { doHideNotification } from 'lbry-redux';
import { selectPhoneToVerify, selectUser } from 'lbryinc';
import { doNavigate } from 'redux/actions/navigation';
import ModalPhoneCollection from './view';
const select = state => ({
phone: selectPhoneToVerify(state),
user: selectUser(state),
});
const perform = dispatch => () => ({
closeModal: () => {
dispatch(doHideNotification());
dispatch(doNavigate('/rewards'));
},
});
export default connect(
select,
perform
)(ModalPhoneCollection);