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

16 lines
450 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { selectPhoneToVerify, selectUser } from 'redux/selectors/user';
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 => () => ({
2019-04-04 23:05:23 +02:00
closeModal: () => dispatch(doHideModal()),
});
export default connect(select, perform)(ModalPhoneCollection);