Notifications have customisable duration and CSS animation in-and-out

This commit is contained in:
James Barnsley
2018-02-27 08:44:20 +13:00
parent 75d6e8c85e
commit e79e213c5a
6 changed files with 61 additions and 27 deletions

View File

@ -76,7 +76,7 @@ const UIMiddleware = (function(){
function(){
store.dispatch(uiActions.removeNotification(action.notification.key))
},
(action.notification.type == 'shortcut' ? 1000 : 3000)
action.notification.duration * 1000
)
}