Notifications as object for better targetting; Notifications closing vs removing for animation window
This commit is contained in:
@ -188,13 +188,21 @@ export function createNotification(data){
|
||||
title: null,
|
||||
content: null,
|
||||
description: null,
|
||||
sticky: false
|
||||
sticky: false,
|
||||
closing: false
|
||||
},
|
||||
data
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export function closeNotification(key){
|
||||
return {
|
||||
type: 'CLOSE_NOTIFICATION',
|
||||
key: key
|
||||
}
|
||||
}
|
||||
|
||||
export function removeNotification(key){
|
||||
return {
|
||||
type: 'REMOVE_NOTIFICATION',
|
||||
|
||||
Reference in New Issue
Block a user