Users transmitted to parent component

This commit is contained in:
Luis Fernando Molina committed 2018-09-27 10:04:08 +02:00
1 parent 13e116a1e2
commit 6e36ca3f94
2 files changed
+140 -150

No files matched your search

+7 -1
View File
@@ -51,6 +51,12 @@ class UserReferrals extends Component {
}
}
userSelected (user) {
console.log(user)
this.setState({referrer: user.id})
}
submitForm (e) {
e.preventDefault()
this.props.updateUserMutation({
@@ -136,7 +142,7 @@ class UserReferrals extends Component {
overall reputation within the project.
</Typography>
<UserSearch selectButton />
<UserSearch selectButton onSelect={this.userSelected.bind(this)} selectText="After that press the 'Select' button on the desired user to set it as your referrer. Bear in mind that this action can not be undone." />
</form>
</Paper>