Files
talk/client/coral-framework/actions/notification.js
T
2017-01-30 15:11:16 -03:00

18 lines
348 B
JavaScript

export const ADD_NOTIFICATION = 'ADD_NOTIFICATION';
export const CLEAR_NOTIFICATION = 'CLEAR_NOTIFICATION';
export const addNotification = (notifType, text, position) => {
return {
type: ADD_NOTIFICATION,
notifType,
text,
position
};
};
export const clearNotification = () => {
return {
type: CLEAR_NOTIFICATION
};
};