2018-03-16 11:22:19 -07:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 13:23:53 -04:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectAccessToken, selectUser } from 'redux/selectors/user';
|
2019-11-18 16:57:03 -05:00
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
|
2018-03-16 11:22:19 -07:00
|
|
|
import ModalFirstSubscription from './view';
|
|
|
|
|
2019-11-18 16:57:03 -05:00
|
|
|
const select = state => ({
|
|
|
|
accessToken: selectAccessToken(state),
|
|
|
|
user: selectUser(state),
|
2020-06-15 16:33:03 -04:00
|
|
|
});
|
2019-11-18 16:57:03 -05:00
|
|
|
|
2018-03-16 11:22:19 -07:00
|
|
|
const perform = dispatch => () => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2018-03-16 11:22:19 -07:00
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default withRouter(connect(select, perform)(ModalFirstSubscription));
|