From 146aa6309f90a53231ebaf52c7111f584f2f85a6 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Aug 2021 15:43:04 +0700 Subject: [PATCH] feat: ItemWishList components add onChange event --- src/components/common/ItemWishList/ItemWishList.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/common/ItemWishList/ItemWishList.tsx b/src/components/common/ItemWishList/ItemWishList.tsx index 01ecc9817..5adef90b8 100644 --- a/src/components/common/ItemWishList/ItemWishList.tsx +++ b/src/components/common/ItemWishList/ItemWishList.tsx @@ -6,9 +6,10 @@ import s from './ItemWishList.module.scss' interface Props { isActive?: boolean, onClick?: () => void + onChange?: () => void } -const ItemWishList = memo(({isActive, onClick}:Props) => { +const ItemWishList = memo(({isActive, onClick, onChange}:Props) => { const handleClick = () => { isActive = !isActive }