UNPKG

admin-on-rest-fr05t1k

Version:

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

25 lines (21 loc) 587 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var HIDE_FIELDS = exports.HIDE_FIELDS = 'HIDE_FIELDS'; var defaultState = { fields: [] }; exports.default = function (resource) { return function () { var previousState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState; var _ref = arguments[1]; var type = _ref.type; switch (type) { case HIDE_FIELDS: return previousState; default: return previousState; } }; };