add prettier and format all

This commit is contained in:
Thomas Ruoff
2021-02-08 22:51:35 +01:00
parent d7044f5f78
commit 78af180567
24 changed files with 266 additions and 297 deletions

View File

@@ -1,18 +1,18 @@
import React from 'react';
import React from 'react'
export default (props) => {
const { options = [] } = props;
const { options = [] } = props
return (
<label>
{props.text}
<select
className={props.name}
onChange={props.onchange.bind(null, props.name)}
value={props.value}
>
{options.map((option) => <option value={option.value} key={option.value}>{option.name}</option>)}
<select className={props.name} onChange={props.onchange.bind(null, props.name)} value={props.value}>
{options.map((option) => (
<option value={option.value} key={option.value}>
{option.name}
</option>
))}
</select>
</label>
);
)
}