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

18 lines
512 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { selectAccessToken, selectUser } from 'redux/selectors/user';
2019-11-18 22:57:03 +01:00
import { withRouter } from 'react-router';
import ModalFirstSubscription from './view';
2019-11-18 22:57:03 +01:00
const select = state => ({
accessToken: selectAccessToken(state),
user: selectUser(state),
});
2019-11-18 22:57:03 +01:00
const perform = dispatch => () => ({
closeModal: () => dispatch(doHideModal()),
});
export default withRouter(connect(select, perform)(ModalFirstSubscription));