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

19 lines
443 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
2018-09-23 23:44:42 -04:00
import { selectPhoneToVerify, selectUser } from 'lbryinc';
2018-04-18 00:03:01 -04:00
import ModalPhoneCollection from './view';
const select = state => ({
2018-01-15 05:32:01 -08:00
phone: selectPhoneToVerify(state),
user: selectUser(state),
});
const perform = dispatch => () => ({
2019-04-04 17:05:23 -04:00
closeModal: () => dispatch(doHideModal()),
});
2018-09-23 23:44:42 -04:00
export default connect(
select,
perform
)(ModalPhoneCollection);