UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

11 lines 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WarnWhenUnsavedChanges = void 0; var useWarnWhenUnsavedChanges_1 = require("./useWarnWhenUnsavedChanges"); var WarnWhenUnsavedChanges = function (_a) { var _b = _a.enable, enable = _b === void 0 ? true : _b, formRootPathName = _a.formRootPathName, formControl = _a.formControl; (0, useWarnWhenUnsavedChanges_1.useWarnWhenUnsavedChanges)(enable, formRootPathName, formControl); return null; }; exports.WarnWhenUnsavedChanges = WarnWhenUnsavedChanges; //# sourceMappingURL=WarnWhenUnsavedChanges.js.map