Moving event bindings to separate components (ideally functional components)

This commit is contained in:
James Barnsley
2019-04-18 09:03:38 +12:00
51 changed files with 15974 additions and 15456 deletions

View File

@ -172,7 +172,12 @@ export function createNotification(data){
// Allow 'message' as an alias of our content
if (data.message){
data.content = data.message;
}
}
// Shortcut notifications are short and sweet
if (data.type == 'shortcut'){
data.duration = 0.4;
}
return {
type: 'CREATE_NOTIFICATION',