diff --git a/.changeset/chilled-brooms-leave.md b/.changeset/chilled-brooms-leave.md new file mode 100644 index 0000000..93f119d --- /dev/null +++ b/.changeset/chilled-brooms-leave.md @@ -0,0 +1,5 @@ +--- +"@openfun/cunningham-react": minor +--- + +fix RadioGroup optional prop diff --git a/packages/react/src/components/Forms/Radio/index.tsx b/packages/react/src/components/Forms/Radio/index.tsx index 059d3b9..384de34 100644 --- a/packages/react/src/components/Forms/Radio/index.tsx +++ b/packages/react/src/components/Forms/Radio/index.tsx @@ -36,7 +36,7 @@ export const RadioGroup = ({ text, rightText, style, -}: PropsWithChildren & FieldProps & { style: React.CSSProperties }) => { +}: PropsWithChildren & FieldProps & { style?: React.CSSProperties }) => { return (