Browse Source

Linting and add required attribute.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
367e978d31
  1. 16
      bikeshop_project/assets/js/components/Purpose.jsx

16
bikeshop_project/assets/js/components/Purpose.jsx

@ -1,21 +1,21 @@
import MenuItem from 'material-ui/MenuItem';
import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
export default class Purpose extends React.Component {
render () {
render() {
return (
<SelectField
value={this.props.default}
onChange={this.props.handleChange.bind(this)}
fullWidth={true}
fullWidth
tabIndex={this.props.tabIndex}
>
<MenuItem value={'VOLUNTEER'} primaryText="Volunteer" />
<MenuItem value={'FIX'} primaryText="Fix" />
<MenuItem value={'WORKSHOP'} primaryText="Workshop" />
<MenuItem value={'DONATE'} primaryText="Donate" />
<MenuItem value={'STAFF'} primaryText="Staff" />
<MenuItem value={'VOLUNTEER'} primaryText="Volunteer" caption={'Volunteer'} />
<MenuItem value={'FIX'} primaryText="Fix" caption={'Fix'} />
<MenuItem value={'WORKSHOP'} primaryText="Workshop" caption={'Workshop'} />
<MenuItem value={'DONATE'} primaryText="Donate" caption={'Donate'} />
<MenuItem value={'STAFF'} primaryText="Staff" caption={'Staff'} />
</SelectField>
);
}

Loading…
Cancel
Save