UNPKG

react-quizzes-fork

Version:

React quizz/form builder and delivery solution

30 lines 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.moveElement = exports.deleteElement = exports.patchElement = exports.addElement = void 0; exports.addElement = function (item) { return { type: "ADD_ELEMENT", item: item, }; }; exports.patchElement = function (id, newitem) { return { type: "PATCH_ELEMENT", id: id, newitem: newitem, }; }; exports.deleteElement = function (id) { return { type: "DELETE_ELEMENT", id: id, }; }; exports.moveElement = function (oldIndex, newIndex) { return { type: "MOVE_ELEMENT", oldIndex: oldIndex, newIndex: newIndex, }; }; //# sourceMappingURL=actions.js.map