mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
22 lines
547 B
JavaScript
22 lines
547 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
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(doHideModal());
|
|
dispatch(doNavigate('/rewards'));
|
|
},
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ModalPhoneCollection);
|