mirror of https://github.com/fspc/workstand.git
Drew Larson
8 years ago
2 changed files with 22 additions and 19 deletions
@ -1,21 +1,24 @@ |
|||||
|
import React, { PropTypes } from 'react'; |
||||
import MenuItem from 'material-ui/MenuItem'; |
import MenuItem from 'material-ui/MenuItem'; |
||||
import React from 'react'; |
|
||||
import SelectField from 'material-ui/SelectField'; |
import SelectField from 'material-ui/SelectField'; |
||||
|
|
||||
export default class Purpose extends React.Component { |
const Purpose = ({ initialValue, handleChange }) => ( |
||||
render() { |
|
||||
return ( |
|
||||
<SelectField |
<SelectField |
||||
value={this.props.default} |
value={initialValue} |
||||
onChange={this.props.handleChange.bind(this)} |
onChange={handleChange} |
||||
fullWidth |
fullWidth |
||||
> |
> |
||||
<MenuItem value={'VOLUNTEER'} primaryText="Volunteer" caption={'Volunteer'} /> |
<MenuItem value={'VOLUNTEER'} primaryText="Volunteer" /> |
||||
<MenuItem value={'FIX'} primaryText="Fix" caption={'Fix'} /> |
<MenuItem value={'FIX'} primaryText="Fix" /> |
||||
<MenuItem value={'WORKSHOP'} primaryText="Workshop" caption={'Workshop'} /> |
<MenuItem value={'WORKSHOP'} primaryText="Workshop" /> |
||||
<MenuItem value={'DONATE'} primaryText="Donate" caption={'Donate'} /> |
<MenuItem value={'DONATE'} primaryText="Donate" /> |
||||
<MenuItem value={'STAFF'} primaryText="Staff" caption={'Staff'} /> |
<MenuItem value={'STAFF'} primaryText="Staff" /> |
||||
</SelectField> |
</SelectField> |
||||
); |
); |
||||
} |
|
||||
} |
Purpose.propTypes = { |
||||
|
initialValue: PropTypes.string, |
||||
|
handleChange: PropTypes.func, |
||||
|
}; |
||||
|
|
||||
|
export default Purpose; |
||||
|
Loading…
Reference in new issue