UNPKG

@data-driven-forms/react-form-renderer

Version:

React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.

14 lines 972 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var jsx_runtime_1 = require("react/jsx-runtime"); var SchemaErrorComponent = function (_a) { var name = _a.name, message = _a.message; return ((0, jsx_runtime_1.jsxs)("div", { style: { padding: 5, border: '1px solid #bbb', borderCollapse: 'collapse', borderRadius: 2, }, children: [(0, jsx_runtime_1.jsx)("h1", { style: { fontSize: 24, marginBottom: 5 }, children: "Form could not be rendered, because of invalid form schema." }), (0, jsx_runtime_1.jsxs)("h2", { style: { fontSize: 20, marginBottom: 5 }, children: [name, ":"] }), (0, jsx_runtime_1.jsx)("p", { style: { marginBottom: 5 }, children: message }), (0, jsx_runtime_1.jsx)("p", { children: "If you don't know what this error means, please contact site administrator." })] })); }; exports.default = SchemaErrorComponent; //# sourceMappingURL=schema-error-component.js.map