prettify file

This commit is contained in:
Steve Klebanoff
2018-12-17 12:57:59 -08:00
parent f7581d60da
commit 35cb769456

View File

@@ -20,9 +20,20 @@ export const Select: React.FunctionComponent<SelectProps> = ({ value, id, items,
<Container>
<StyledSelect id={id} onChange={onChange}>
<option value="">{emptyText}</option>
{items.map((item, index) => <option key={`${id}-item-${index}`} value={item.value} selected={item.value === value} onClick={item.onClick}>{item.label}</option>)}
{items.map((item, index) => (
<option
key={`${id}-item-${index}`}
value={item.value}
selected={item.value === value}
onClick={item.onClick}
>
{item.label}
</option>
))}
</StyledSelect>
<Caret width="12" height="7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 1L6 6 1 1" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></Caret>
<Caret width="12" height="7" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M11 1L6 6 1 1" stroke="#666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</Caret>
</Container>
);
};