From 450f9b48e2b1e6c1ef30db2ea49dcba0c0082b9f Mon Sep 17 00:00:00 2001 From: David Conner Date: Wed, 4 Nov 2020 16:16:08 -0500 Subject: [PATCH] fix(card): remove unnecessary state hooks --- src/components/Card/Card.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Card/Card.jsx b/src/components/Card/Card.jsx index 91fa7d166d..26900778a3 100644 --- a/src/components/Card/Card.jsx +++ b/src/components/Card/Card.jsx @@ -55,10 +55,6 @@ const CardWrapper = ({ ...others }) => { const validOthers = filterValidAttributes(others); - const [isCardSelected, setIsCardSelected] = useState(false); - useEffect(() => { - setIsCardSelected(isSelected); - }, [isSelected, setIsCardSelected]); return (
{children}