From 290aec4b14e0bc86ba38ac0caf0f496af4531f45 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 | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/common/form/RadioButton.tsx b/src/components/common/form/RadioButton.tsx index f630754dc..c843c4a99 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={