Skip to content

Commit

Permalink
🐛(react) fix RadioGroup optional prop
Browse files Browse the repository at this point in the history
since 5dde74c RadioGroup style was a
mandatory property.
It should be optional.
  • Loading branch information
rlecellier committed Aug 10, 2023
1 parent 3e1cdbe commit 4eae45c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-brooms-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": minor
---

fix RadioGroup optional prop
2 changes: 1 addition & 1 deletion packages/react/src/components/Forms/Radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4eae45c

Please sign in to comment.