Updated confidence level labels to sponsor's suggestions.

This commit is contained in:
wildscotsmen 2018-10-19 16:25:09 -04:00
parent 22608cff37
commit 204f3d2a7a
1 changed files with 8 additions and 9 deletions

View File

@ -175,23 +175,23 @@ const timeTypes = [
const confidenceLevels = [ const confidenceLevels = [
{ {
value: '1', value: '1',
label: '1 - Not at all confident', label: '1 - Strongly disagree',
}, },
{ {
value: '2', value: '2',
label: '2 - Slightly confident', label: '2 - Disagree',
}, },
{ {
value: '3', value: '3',
label: '3 - Somewhat confident', label: '3 - Neutral',
}, },
{ {
value: '4', value: '4',
label: '4 - Fairly confident', label: '4 - Agree',
}, },
{ {
value: '5', value: '5',
label: '5 - Completely confident', label: '5 - Strongly agree',
}, },
]; ];
@ -259,7 +259,7 @@ class ReportForm extends React.Component {
const sighting = { const sighting = {
type: this.state.type, type: this.state.type,
confidence: this.state.confidence, confidence: this.state.confidence,
date: this.state.year + '-' + this.state.month, date: this.state.year + '-' + this.state.month,
time: this.state.time, time: this.state.time,
desc: this.state.desc, desc: this.state.desc,
lat: this.state.lat, lat: this.state.lat,
@ -334,7 +334,7 @@ class ReportForm extends React.Component {
className: classes.menu, className: classes.menu,
}, },
}} }}
helperText="Please select confidence in sighting" helperText="I am confident of my marten sighting"
> >
{confidenceLevels.map(option => ( {confidenceLevels.map(option => (
<MenuItem key={option.value} value={option.value}> <MenuItem key={option.value} value={option.value}>
@ -383,7 +383,6 @@ class ReportForm extends React.Component {
className: classes.menu, className: classes.menu,
}, },
}} }}
helperText="Please select month of sighting"
> >
{monthTypes.map(option => ( {monthTypes.map(option => (
<MenuItem key={option.value} value={option.value}> <MenuItem key={option.value} value={option.value}>
@ -432,7 +431,7 @@ class ReportForm extends React.Component {
<Grid item xs={12}> <Grid item xs={12}>
<Button variant="contained" type="submit" color="primary" className={classes.button}> <Button variant="contained" type="submit" color="primary" className={classes.button}>
Submit Submit
</Button> </Button>
</Grid> </Grid>
</Grid> </Grid>
</Grid> </Grid>