Notifications as object for better targetting; Notifications closing vs removing for animation window

This commit is contained in:
James Barnsley
2018-02-28 08:44:38 +13:00
parent 7fa1fcf9e7
commit 2a95af89de
7 changed files with 62 additions and 54 deletions

View File

@ -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',