mirror of
https://github.com/plankanban/planka.git
synced 2025-12-24 01:11:41 +03:00
29 lines
572 B
JavaScript
Executable File
29 lines
572 B
JavaScript
Executable File
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,
|
|
};
|