From 5b885afad5709b875d8e7f508558b7331d29a65a Mon Sep 17 00:00:00 2001 From: Aleksandar Petkov Date: Sat, 7 Dec 2024 00:59:59 +0200 Subject: [PATCH] chore: Change color of radio buttons if disabled --- src/components/common/form/RadioButton.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/common/form/RadioButton.tsx b/src/components/common/form/RadioButton.tsx index f630754dc..440154195 100644 --- a/src/components/common/form/RadioButton.tsx +++ b/src/components/common/form/RadioButton.tsx @@ -70,13 +70,21 @@ type RadioButtonProps = { error?: boolean } -function RadioButton({ checked, label, muiRadioButtonProps, value, error }: RadioButtonProps) { +function RadioButton({ + checked, + label, + muiRadioButtonProps, + value, + disabled, + error, +}: RadioButtonProps) { return ( {label} @@ -84,6 +92,7 @@ function RadioButton({ checked, label, muiRadioButtonProps, value, error }: Radi } control={ } checkedIcon={