fix StyledRadioGroup React key warning

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-06-27 18:30:15 +01:00
parent cf3c914382
commit 10492fe72f

View file

@ -41,9 +41,8 @@ function StyledRadioGroup<T extends string>({name, definitions, value, className
};
return <React.Fragment>
{definitions.map(d => <React.Fragment>
{definitions.map(d => <React.Fragment key={d.value}>
<StyledRadioButton
key={d.value}
className={classNames(className, d.className)}
onChange={_onChange}
checked={d.value === value}