Prettier fixes

This commit is contained in:
Fred Carlsen
2019-02-25 15:32:57 +01:00
parent 079f627b34
commit cf65d4a909
5 changed files with 14 additions and 12 deletions

View File

@@ -29,11 +29,7 @@ export const Select: React.FunctionComponent<SelectProps> = ({
<StyledSelect id={id} onChange={onChange} defaultValue={value}>
{shouldIncludeEmpty && <option value="">{emptyText}</option>}
{items.map((item, index) => (
<option
key={`${id}-item-${index}`}
value={item.value}
onClick={item.onClick}
>
<option key={`${id}-item-${index}`} value={item.value} onClick={item.onClick}>
{item.label}
</option>
))}