lbry-desktop/ui/page/settingsStripeAccount/index.js

16 lines
464 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import StripeAccountConnection from './view';
import { selectUser } from 'redux/selectors/user';
2021-07-25 23:31:46 +02:00
import { doToast } from 'redux/actions/notifications';
const select = (state) => ({
user: selectUser(state),
});
2021-07-25 23:31:46 +02:00
const perform = (dispatch) => ({
doToast: (options) => dispatch(doToast(options)),
});
2021-07-25 23:31:46 +02:00
export default withRouter(connect(select, perform)(StripeAccountConnection));