[WEB-1117] chore: add tool tip for Snooze under Notification Panel. (#4377)

This commit is contained in:
Prateek Shourya 2024-05-07 14:08:02 +05:30 committed by GitHub
parent 780b239ecb
commit a46eccf300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,6 @@ import { replaceUnderscoreIfSnakeCase, truncateText, stripAndTruncateHTML } from
import { useEventTracker } from "@/hooks/store";
import { usePlatformOS } from "@/hooks/use-platform-os";
type NotificationCardProps = {
selectedTab: NotificationType;
notification: IUserNotification;
@ -381,13 +380,14 @@ export const NotificationCard: React.FC<NotificationCardProps> = (props) => {
</button>
</Tooltip>
))}
<Tooltip tooltipContent="Snooze" isMobile={isMobile}>
<CustomMenu
className="flex items-center"
customButton={
<Tooltip tooltipContent="Snooze" isMobile={isMobile}>
<div className="flex w-full items-center gap-x-2 rounded bg-custom-background-80 p-0.5 text-sm hover:bg-custom-background-100">
<Clock className="h-3.5 w-3.5 text-custom-text-300" />
</div>
</Tooltip>
}
optionsClassName="!z-20"
>
@ -420,7 +420,6 @@ export const NotificationCard: React.FC<NotificationCardProps> = (props) => {
</CustomMenu.MenuItem>
))}
</CustomMenu>
</Tooltip>
</div>
</Link>
);