From 7ee15044e911c78b4b63074dd41c8df9e0433f71 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 6 Sep 2024 13:19:03 +0700 Subject: [PATCH] Fixed animation of love heart bump Resetting the isClicked state immediately would cancel the animation --- apps/admin-x-activitypub/src/components/feed/FeedItem.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/admin-x-activitypub/src/components/feed/FeedItem.tsx b/apps/admin-x-activitypub/src/components/feed/FeedItem.tsx index a1af63c377..c4dcdefd1d 100644 --- a/apps/admin-x-activitypub/src/components/feed/FeedItem.tsx +++ b/apps/admin-x-activitypub/src/components/feed/FeedItem.tsx @@ -149,9 +149,6 @@ const FeedItemStats: React.FC<{ setIsLiked(!isLiked); - setIsClicked(false); // Reset the animation class after request completed - - // Call the requested `onLikeClick` onLikeClick(); setTimeout(() => setIsClicked(false), 300); };