mirror of
https://github.com/plankanban/planka.git
synced 2025-12-28 17:24:59 +03:00
29 lines
572 B
JavaScript
29 lines
572 B
JavaScript
|
|
import EntryActionTypes from '../constants/EntryActionTypes';
|
||
|
|
|
||
|
|
const handleNotificationCreate = (notification) => ({
|
||
|
|
type: EntryActionTypes.NOTIFICATION_CREATE_HANDLE,
|
||
|
|
payload: {
|
||
|
|
notification,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
const deleteNotification = (id) => ({
|
||
|
|
type: EntryActionTypes.NOTIFICATION_DELETE,
|
||
|
|
payload: {
|
||
|
|
id,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
const handleNotificationDelete = (notification) => ({
|
||
|
|
type: EntryActionTypes.NOTIFICATION_DELETE_HANDLE,
|
||
|
|
payload: {
|
||
|
|
notification,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export default {
|
||
|
|
handleNotificationCreate,
|
||
|
|
deleteNotification,
|
||
|
|
handleNotificationDelete,
|
||
|
|
};
|