Fix warnings

This commit is contained in:
2021-03-09 10:56:15 -06:00
parent bd190d30cb
commit 617d78ae24
18 changed files with 65 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import './DropDown.css';
export default props => {
const DropDown = props => {
const options = props.items.map((s, i) => {
return (
<option className={'DropDownOption'} key={i} value={s}>{s}</option>
@@ -10,14 +10,17 @@ export default props => {
return (
<div className={'DropDown'}>
<select className={'DropDownSelect' + (props.auto ? ' Auto ' : '') + (props.alt ? ' Alt ' : '') }
autoFocus={props.autoFocus}
disabled={props.disabled}
onChange={props.changed}
value={props.selected}>
<select
className={'DropDownSelect' + (props.auto ? ' Auto ' : '') + (props.alt ? ' Alt ' : '')}
autoFocus={props.autoFocus}
disabled={props.disabled}
onChange={props.changed}
value={props.selected}>
{options}
</select>
</div>
);
};
export default DropDown;