lbry-desktop/ui/modal/modalPhoneCollection/index.js
2019-11-11 13:27:29 -05:00

18 lines
443 B
JavaScript

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