Class

NotificationStore

NotificationStore

Methods

# static addNotification(notification)

Add a notification to the store
Parameters:
Name Type Description
notification NotificationProps
Author:

View Source utils/notificationStore.ts, line 62

# static getNotifications() → {Array.<NotificationProps>}

Get all notifications.
Author:

View Source utils/notificationStore.ts, line 81

array of notifications
Array.<NotificationProps>

# static removeNotification(index) → {NotificationProps}

Remove a notification given its index
Parameters:
Name Type Description
index number notification index
Author:

View Source utils/notificationStore.ts, line 72

the notificaion that was removed from the store