canape/frontend/js/actions/notifications.js
Grégoire Delattre bcadc48d5a Launch prettier with the --fix option
They've changed their default settings, this changes a lot of stuff in
our code base.
2020-04-01 17:55:34 +02:00

10 lines
194 B
JavaScript

export const sendNotification = (data) => ({
type: "ADD_NOTIFICATION",
payload: data,
});
export const removeNotification = (id) => ({
type: "REMOVE_NOTIFICATION",
payload: { id },
});