🐛(react) fix RadioGroup optional prop

since 5dde74c10d RadioGroup style was a
mandatory property.
It should be optional.
This commit is contained in:
Romain Le Cellier
2023-08-10 18:21:04 +02:00
parent 3e1cdbe9d6
commit 4eae45c4d9
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": minor
---
fix RadioGroup optional prop

View File

@@ -36,7 +36,7 @@ export const RadioGroup = ({
text,
rightText,
style,
}: PropsWithChildren & FieldProps & { style: React.CSSProperties }) => {
}: PropsWithChildren & FieldProps & { style?: React.CSSProperties }) => {
return (
<Field
className="c__radio__group c__checkbox__group"