mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
Added a bit of styling to the dropdown
This commit is contained in:
@@ -11,13 +11,15 @@ type Props = {
|
|||||||
class DropDown extends React.Component<Props> {
|
class DropDown extends React.Component<Props> {
|
||||||
render() {
|
render() {
|
||||||
const {options, preselectedOption} = this.props;
|
const {options, preselectedOption} = this.props;
|
||||||
return <select value={preselectedOption} onChange={this.change}>
|
return <div className="select">
|
||||||
<option key=""> </option>
|
<select value={preselectedOption} onChange={this.change}>
|
||||||
|
<option key=""></option>
|
||||||
{options.map(option => {
|
{options.map(option => {
|
||||||
return <option key={option}
|
return <option key={option}
|
||||||
value={option}>{option}</option>
|
value={option}>{option}</option>
|
||||||
})}
|
})}
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
change = (event) => {
|
change = (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user