Added a bit of styling to the dropdown

This commit is contained in:
Philipp Czora
2018-09-18 15:01:06 +02:00
parent 04599350b6
commit 75767bde69

View File

@@ -11,13 +11,15 @@ type Props = {
class DropDown extends React.Component<Props> {
render() {
const {options, preselectedOption} = this.props;
return <select value={preselectedOption} onChange={this.change}>
<option key=""> </option>
return <div className="select">
<select value={preselectedOption} onChange={this.change}>
<option key=""></option>
{options.map(option => {
return <option key={option}
value={option}>{option}</option>
})}
</select>
</div>
}
change = (event) => {