From 4eae45c4d9a744e799fc1cfecc63023815b9bcad Mon Sep 17 00:00:00 2001 From: Romain Le Cellier Date: Thu, 10 Aug 2023 18:21:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(react)=20fix=20RadioGroup=20option?= =?UTF-8?q?al=20prop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit since 5dde74c10da5d2967f70652593d9d15bf046c182 RadioGroup style was a mandatory property. It should be optional. --- .changeset/chilled-brooms-leave.md | 5 +++++ packages/react/src/components/Forms/Radio/index.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/chilled-brooms-leave.md 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 (