SnackBarAction.js 223 Bytes
Newer Older
Giang Tran committed
1
import {PUSHNOTI, HIDENOTI} from './actionTypes';
Giang Tran committed
2 3 4 5

export const showNotificaton = (data) => {
  return {
    type: PUSHNOTI,
Giang Tran committed
6
    data,
Giang Tran committed
7 8 9 10 11
  };
};

export const hideNotification = () => {
  return {
Giang Tran committed
12
    type: HIDENOTI,
Giang Tran committed
13 14
  };
};