diff options
Diffstat (limited to 'src/lib/custom-animations/LikeIcon.web.tsx')
-rw-r--r-- | src/lib/custom-animations/LikeIcon.web.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/custom-animations/LikeIcon.web.tsx b/src/lib/custom-animations/LikeIcon.web.tsx index 79a646e6d..081bec45c 100644 --- a/src/lib/custom-animations/LikeIcon.web.tsx +++ b/src/lib/custom-animations/LikeIcon.web.tsx @@ -41,15 +41,15 @@ const circle2Keyframe = [ export function AnimatedLikeIcon({ isLiked, big, - isToggle, + hasBeenToggled, }: { isLiked: boolean big?: boolean - isToggle: boolean + hasBeenToggled: boolean }) { const t = useTheme() const size = big ? 22 : 18 - const shouldAnimate = !useReducedMotion() && isToggle + const shouldAnimate = !useReducedMotion() && hasBeenToggled const prevIsLiked = React.useRef(isLiked) const likeIconRef = React.useRef<HTMLDivElement>(null) |