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