Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 5 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5 Rev 1668
Línea 1... Línea 1...
1
import { notificationActionTypes } from "./notification.types";
1
import { notificationActionTypes } from './notification.types'
Línea 2... Línea 2...
2
 
2
 
3
export const addNotification = (notification) => ({
3
export const addNotification = ({ style, msg }) => ({
4
  type: notificationActionTypes.ADD_NOTIFICATION,
4
  type: notificationActionTypes.ADD_NOTIFICATION,
5
  payload: notification,
5
  payload: { style, msg }
Línea 6... Línea 6...
6
});
6
})
7
 
7
 
8
export const removeNotification = (id) => ({
8
export const removeNotification = (id) => ({
9
  type: notificationActionTypes.REMOVE_NOTIFICATION,
9
  type: notificationActionTypes.REMOVE_NOTIFICATION,