Fix styling on select.tsx

This commit is contained in:
phntxx 2021-11-20 12:39:29 +01:00
parent cfbe492ef8
commit c07c45a72b

View file

@ -35,7 +35,8 @@ const Select = ({
> >
{items.map(({ label, value }, index) => { {items.map(({ label, value }, index) => {
if (label === current) { if (label === current) {
return <option return (
<option
data-testid={"option-" + (testId ? testId + "-" : "") + index} data-testid={"option-" + (testId ? testId + "-" : "") + index}
key={[label, index].join("")} key={[label, index].join("")}
value={value.toString()} value={value.toString()}
@ -43,14 +44,17 @@ const Select = ({
> >
{label} {label}
</option> </option>
);
} else { } else {
return <option return (
<option
data-testid={"option-" + (testId ? testId + "-" : "") + index} data-testid={"option-" + (testId ? testId + "-" : "") + index}
key={[label, index].join("")} key={[label, index].join("")}
value={value.toString()} value={value.toString()}
> >
{label} {label}
</option> </option>
);
} }
})} })}
</select> </select>