From 77503666549aa0783405ef6373bf1aa158b44059 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Fri, 24 Dec 2021 15:03:57 +0530 Subject: [PATCH] Fix RadioButton style Signed-off-by: Ajay Bura --- src/app/atoms/button/RadioButton.jsx | 4 +++- src/app/atoms/button/RadioButton.scss | 26 ++++++++++++++------------ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/app/atoms/button/RadioButton.jsx b/src/app/atoms/button/RadioButton.jsx index b10e0cf..c14a334 100644 --- a/src/app/atoms/button/RadioButton.jsx +++ b/src/app/atoms/button/RadioButton.jsx @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import './RadioButton.scss'; function RadioButton({ isActive, onToggle }) { + if (onToggle === null) return ; return ( // eslint-disable-next-line jsx-a11y/control-has-associated-label