From 7be5bcb65aeb56acc052a7d0e418a89033f0dcc3 Mon Sep 17 00:00:00 2001 From: liangfung Date: Thu, 19 Dec 2024 18:22:46 +0700 Subject: [PATCH] update --- ee/tabby-ui/components/notification-box.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ee/tabby-ui/components/notification-box.tsx b/ee/tabby-ui/components/notification-box.tsx index d5481f44a75e..7bb1ea44827e 100644 --- a/ee/tabby-ui/components/notification-box.tsx +++ b/ee/tabby-ui/components/notification-box.tsx @@ -156,7 +156,7 @@ interface NotificationItemProps extends HTMLAttributes { } function NotificationItem({ data }: NotificationItemProps) { - const { type, title, content } = resolveNotification(data.content) + const { title, content } = resolveNotification(data.content) const markNotificationsRead = useMutation(markNotificationsReadMutation) @@ -205,16 +205,7 @@ function resolveNotification(content: string) { const title = content.split('\n')[0] const _content = content.split('\n').slice(1).join('\n') - if (content.startsWith('Your license will expire')) { - return { - type: 'license_will_expire', - title, - content: _content - } - } - return { - type: '', title, content: _content }