From 6e4c5e26b7f39718b0404a608b05c1b42c4aa22e Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 21 Mar 2022 02:18:34 -0400 Subject: [PATCH] Fix bubble click url --- .../views/bubble-layouts/NotificationDefaultBubbleView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/notification-center/views/bubble-layouts/NotificationDefaultBubbleView.tsx b/src/components/notification-center/views/bubble-layouts/NotificationDefaultBubbleView.tsx index b778ff58..49009287 100644 --- a/src/components/notification-center/views/bubble-layouts/NotificationDefaultBubbleView.tsx +++ b/src/components/notification-center/views/bubble-layouts/NotificationDefaultBubbleView.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { NotificationBubbleItem } from '../../../../api'; +import { NotificationBubbleItem, NotificationUtilities } from '../../../../api'; import { Flex, LayoutNotificationBubbleView, LayoutNotificationBubbleViewProps, Text } from '../../../../common'; export interface NotificationDefaultBubbleViewProps extends LayoutNotificationBubbleViewProps @@ -13,8 +13,10 @@ export const NotificationDefaultBubbleView: FC'); + NotificationUtilities.openUrl(item.linkUrl); + return ( - + (item.linkUrl && item.linkUrl.length && NotificationUtilities.openUrl(item.linkUrl)) } { ...rest }> { (item.iconUrl && item.iconUrl.length) && }