From b69f58b147d250bcb88589852e92e0ba1f442bde Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 25 Aug 2021 11:40:17 +0700 Subject: [PATCH] remove: remove onClick props and handleClick func --- src/components/common/ItemWishList/ItemWishList.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/common/ItemWishList/ItemWishList.tsx b/src/components/common/ItemWishList/ItemWishList.tsx index 5adef90b8..f93f1e135 100644 --- a/src/components/common/ItemWishList/ItemWishList.tsx +++ b/src/components/common/ItemWishList/ItemWishList.tsx @@ -5,20 +5,17 @@ import s from './ItemWishList.module.scss' interface Props { isActive?: boolean, - onClick?: () => void onChange?: () => void } -const ItemWishList = memo(({isActive, onClick, onChange}:Props) => { - const handleClick = () => { - isActive = !isActive - } +const ItemWishList = memo(({isActive, onChange}:Props) => { return(
+ onChange={onChange} + >
)