Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add referral section to user settings #661

Merged
merged 2 commits into from
Jan 31, 2017

Conversation

lukebarnard1
Copy link
Contributor

This allows those who have registered to referrer other students to Riot and have their referral counted for the campaign competition.

This allows those who have registered to referrer other students to Riot and have their referral counted for the campaign competition.
return null;
}
const href = window.location.origin +
`/#/register?referrer=${this._me}&team_token=${teamToken}`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bear in mind this won't work in the electron app as your window.href will be a file URI. Are we supporting team-based stuff in electron? I guess we can do if we ship the appropriate config.

Copy link
Contributor Author

@lukebarnard1 lukebarnard1 Jan 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having spoken to @BenfLewis0, there's no reason why electron users wouldn't have referral links. Making this configurable would probably be desirable.

@@ -57,7 +57,7 @@ module.exports = React.createClass({
// URL of the riot-team-server to get team configurations and track referrals
teamServerURL: React.PropTypes.string.isRequired,
}),
teamSelected: null,
teamSelected: React.PropTypes.object,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a warning

@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Jan 31, 2017
@lukebarnard1 lukebarnard1 merged commit be869a8 into develop Jan 31, 2017
@lukebarnard1 lukebarnard1 deleted the luke/rts-generate-referral-link branch January 31, 2017 15:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants