From: Ajay Bura Date: Fri, 24 Dec 2021 09:33:57 +0000 (+0530) Subject: Fix RadioButton style X-Git-Tag: v1.7.0~85 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=77503666549aa0783405ef6373bf1aa158b44059;p=rainny.git Fix RadioButton style Signed-off-by: Ajay Bura --- 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