lbry-desktop/src/renderer/modal/modalPhoneCollection/index.js

23 lines
692 B
JavaScript
Raw Normal View History

import React from 'react';
import * as settings from 'constants/settings';
import { connect } from 'react-redux';
import { doCloseModal } from 'redux/actions/app';
import { doSetClientSetting } from 'redux/actions/settings';
2018-01-15 14:32:01 +01:00
import { selectPhoneToVerify, selectUser } from 'redux/selectors/user';
import ModalPhoneCollection from './view';
2018-01-15 14:32:01 +01:00
import { doNavigate } from 'redux/actions/navigation';
const select = state => ({
2018-01-15 14:32:01 +01:00
phone: selectPhoneToVerify(state),
user: selectUser(state),
});
const perform = dispatch => () => ({
closeModal: () => {
dispatch(doCloseModal());
2018-01-15 14:32:01 +01:00
dispatch(doNavigate('/rewards'));
},
});
export default connect(select, perform)(ModalPhoneCollection);