16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
export const addNotification = (notification) =>
|
|
({
|
|
type : 'ADD_NOTIFICATION',
|
|
payload : { notification }
|
|
});
|
|
|
|
export const removeNotification = (notificationId) =>
|
|
({
|
|
type : 'REMOVE_NOTIFICATION',
|
|
payload : { notificationId }
|
|
});
|
|
|
|
export const removeAllNotifications = () =>
|
|
({
|
|
type : 'REMOVE_ALL_NOTIFICATIONS'
|
|
}); |