lbry-desktop/ui/component/inviteNew/index.js
infinite-persistence 36c10a9c78
Remove unused props
2021-12-02 20:41:02 +08:00

22 lines
712 B
JavaScript

import { connect } from 'react-redux';
import {
selectUserInviteNewIsPending,
selectUserInviteNewErrorMessage,
selectUserInviteReferralCode,
} from 'redux/selectors/user';
import { doUserInviteNew } from 'redux/actions/user';
import { selectMyChannelClaims } from 'redux/selectors/claims';
import InviteNew from './view';
const select = (state) => ({
errorMessage: selectUserInviteNewErrorMessage(state),
referralCode: selectUserInviteReferralCode(state),
isPending: selectUserInviteNewIsPending(state),
channels: selectMyChannelClaims(state),
});
const perform = (dispatch) => ({
inviteNew: (email) => dispatch(doUserInviteNew(email)),
});
export default connect(select, perform)(InviteNew);