Refactor stateActions for better overview.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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'
|
||||
});
|
||||
Reference in New Issue
Block a user