From 5c5bcb33e35dc1c11dc16d5f27ded8177167402d Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Wed, 19 Jul 2023 18:42:32 +0530 Subject: [PATCH] style: tooltip on notification header actions (#1577) * style: tooltip on notification header * chore: update tooltip content --------- Co-authored-by: Aaryan Khandelwal --- .../notifications/notification-card.tsx | 8 +- .../notifications/notification-popover.tsx | 96 ++++++++++--------- 2 files changed, 56 insertions(+), 48 deletions(-) diff --git a/apps/app/components/notifications/notification-card.tsx b/apps/app/components/notifications/notification-card.tsx index 174c52a60..40728d804 100644 --- a/apps/app/components/notifications/notification-card.tsx +++ b/apps/app/components/notifications/notification-card.tsx @@ -176,7 +176,7 @@ export const NotificationCard: React.FC = (props) => { {[ { id: 1, - name: notification.read_at ? "Mark as Unread" : "Mark as Read", + name: notification.read_at ? "Mark as unread" : "Mark as read", icon: "chat_bubble", onClick: () => { markNotificationReadStatus(notification.id).then(() => { @@ -191,7 +191,7 @@ export const NotificationCard: React.FC = (props) => { }, { id: 2, - name: notification.archived_at ? "Unarchive Notification" : "Archive Notification", + name: notification.archived_at ? "Unarchive" : "Archive", icon: "archive", onClick: () => { markNotificationArchivedStatus(notification.id).then(() => { @@ -205,7 +205,7 @@ export const NotificationCard: React.FC = (props) => { }, }, ].map((item) => ( - + - - - + const target = e.target as HTMLButtonElement; + target?.classList.add("animate-spin"); + setTimeout(() => { + target?.classList.remove("animate-spin"); + }, 1000); + }} + > + + + + + + + + + + + +