b16688754b
enable visiting /$/CODE or /$/invite/CHANNEL enable visiting /ANY?=[CODE|CHANNEL] to set and claim enable /$/invite selecting channels for referral codes add ?r=CODE to share modal enable setting referrer and claiming reward from rewards page
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimForUri } from 'lbry-redux';
|
|
import SocialShare from './view';
|
|
import { selectUserInviteReferralCode, selectUser } from 'lbryinc';
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
referralCode: selectUserInviteReferralCode(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
export default connect(select)(SocialShare);
|