Select Button and Text Implemented

This commit is contained in:
Luis Fernando Molina committed 2018-09-26 14:52:55 +02:00
1 parent dfec88b5b2
commit 6032777136
2 files changed
+21 -10

No files matched your search

+1 -1
View File
@@ -293,7 +293,7 @@ class UserReferrals extends Component {
overall reputation within the project.
</Typography>
<UserSearch />
<UserSearch selectButton />
<Grid container justify='center' >
<Grid item>
+20 -9
View File
@@ -139,17 +139,28 @@ class UserSearch extends Component {
selectButton(){
if (this.props.selectButton === true) {
if (this.props.selectButton === true) {
return(
<Button color="primary">
Select
</Button>
)
return(
<Button color="primary">
Select
</Button>
)
} else {
return(<div></div>)
} else {
return(<div></div>)
}
}
selectText(){
if (this.props.selectButton === true) {
return(<dummy>After that press the 'Select' button on the desired user to continue.</dummy>)
} else {
return(<div></div>)
}
}
@@ -209,7 +220,7 @@ if (this.props.selectButton === true) {
<form onSubmit={this.submitForm.bind(this)}>
<Typography className={classes.formTypography} variant='body1' gutterBottom align='left'>
Use any of these fileds to search for users.
Use any of these fileds to search for users. {this.selectText()}
</Typography>
<TextField