mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
feat: add builders club catalog ui flow
This commit is contained in:
@@ -73,7 +73,17 @@ const useNotificationState = () =>
|
||||
|
||||
const notificationItem = new NotificationBubbleItem(message, type, imageUrl, internalLink);
|
||||
|
||||
setBubbleAlerts(prevValue => [ notificationItem, ...prevValue ]);
|
||||
setBubbleAlerts(prevValue =>
|
||||
{
|
||||
if(type === NotificationBubbleType.CLUBGIFT)
|
||||
{
|
||||
const filteredAlerts = prevValue.filter(value => (value.notificationType !== NotificationBubbleType.CLUBGIFT));
|
||||
|
||||
return [ notificationItem, ...filteredAlerts ];
|
||||
}
|
||||
|
||||
return [ notificationItem, ...prevValue ];
|
||||
});
|
||||
}, [ bubblesDisabled ]);
|
||||
|
||||
const showNotification = (type: string, options: Map<string, string> = null) =>
|
||||
|
||||
Reference in New Issue
Block a user