UNPKG

admin-on-rest-fr05t1k

Version:

A frontend Framework for building admin applications on top of REST services, using ES6, React and Material UI

22 lines (18 loc) 640 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var SHOW_NOTIFICATION = exports.SHOW_NOTIFICATION = 'SHOW_NOTIFICATION'; var showNotification = exports.showNotification = function showNotification(text) { var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'info'; return { type: SHOW_NOTIFICATION, payload: { text: text, type: type } }; }; var HIDE_NOTIFICATION = exports.HIDE_NOTIFICATION = 'HIDE_NOTIFICATION'; var hideNotification = exports.hideNotification = function hideNotification() { return { type: HIDE_NOTIFICATION }; };