From 459ef38a5615b6122ed7b96a95361d5047fa587d Mon Sep 17 00:00:00 2001 From: Rufat Aliyev <46456022+rufataliy@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:00:59 -0500 Subject: [PATCH] Linted --- client/components/common/ToggleGroup.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/components/common/ToggleGroup.jsx b/client/components/common/ToggleGroup.jsx index b6bcf2971..aac8864d2 100644 --- a/client/components/common/ToggleGroup.jsx +++ b/client/components/common/ToggleGroup.jsx @@ -41,11 +41,11 @@ export default function ToggleGroup({ const addClasses = component => { const { props } = component; - - const isTheSelectedChild = props.value === selectedValue + + const isTheSelectedChild = props.value === selectedValue; let className = ''; - + if (isTheSelectedChild) { className = `${classes.selected} ${classes.regular}`; } else { @@ -58,13 +58,13 @@ export default function ToggleGroup({ }; const handleClick = e => { - const isContainerClicked = e.target.classList.contains(classes.root) + const isContainerClicked = e.target.classList.contains(classes.root); if (isContainerClicked) return; let element = e.target; - const isNotDirectChildOfContainer = !element.parentElement.classList.contains(classes.root) + const isNotDirectChildOfContainer = !element.parentElement.classList.contains(classes.root); while (isNotDirectChildOfContainer) { element = element.parentElement; }