Toasts
This commit is contained in:
parent
c603974f3b
commit
04ed8e9fb3
|
@ -1,5 +1,5 @@
|
|||
import React, { Component } from 'react';
|
||||
import require$$0 from 'prop-types';
|
||||
import require$$1 from 'prop-types';
|
||||
import reactDom from 'react-dom';
|
||||
|
||||
var classCallCheck = function (instance, Constructor) {
|
||||
|
@ -563,7 +563,7 @@ var TransitionGroup_1 = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _react = _interopRequireDefault(React);
|
||||
|
||||
|
@ -867,7 +867,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireDefault(React);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -979,7 +979,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireWildcard(React);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -1314,7 +1314,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireDefault(React);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
|
@ -1348,7 +1348,7 @@ var PropTypes = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.classNamesShape = exports.timeoutsShape = void 0;
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
|
@ -1382,7 +1382,7 @@ var Transition_1 = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;
|
||||
|
||||
var PropTypes$$1 = _interopRequireWildcard(require$$0);
|
||||
var PropTypes$$1 = _interopRequireWildcard(require$$1);
|
||||
|
||||
var _react = _interopRequireDefault(React);
|
||||
|
||||
|
@ -2149,7 +2149,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireWildcard(React);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -2772,7 +2772,8 @@ var Form = function (_Component) {
|
|||
{ onSubmit: this._onSubmit },
|
||||
this.renderError(),
|
||||
this.props.children
|
||||
)
|
||||
),
|
||||
React.createElement(lib_1, null)
|
||||
);
|
||||
}
|
||||
}, {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|||
|
||||
var React = require('react');
|
||||
var React__default = _interopDefault(React);
|
||||
var require$$0 = _interopDefault(require('prop-types'));
|
||||
var require$$1 = _interopDefault(require('prop-types'));
|
||||
var reactDom = _interopDefault(require('react-dom'));
|
||||
|
||||
var classCallCheck = function (instance, Constructor) {
|
||||
|
@ -570,7 +570,7 @@ var TransitionGroup_1 = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.default = void 0;
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _react = _interopRequireDefault(React__default);
|
||||
|
||||
|
@ -874,7 +874,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireDefault(React__default);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -986,7 +986,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireWildcard(React__default);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -1321,7 +1321,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireDefault(React__default);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
|
@ -1355,7 +1355,7 @@ var PropTypes = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.classNamesShape = exports.timeoutsShape = void 0;
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
|
@ -1389,7 +1389,7 @@ var Transition_1 = createCommonjsModule(function (module, exports) {
|
|||
exports.__esModule = true;
|
||||
exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;
|
||||
|
||||
var PropTypes$$1 = _interopRequireWildcard(require$$0);
|
||||
var PropTypes$$1 = _interopRequireWildcard(require$$1);
|
||||
|
||||
var _react = _interopRequireDefault(React__default);
|
||||
|
||||
|
@ -2156,7 +2156,7 @@ exports.default = void 0;
|
|||
|
||||
var _react = _interopRequireWildcard(React__default);
|
||||
|
||||
var _propTypes = _interopRequireDefault(require$$0);
|
||||
var _propTypes = _interopRequireDefault(require$$1);
|
||||
|
||||
var _classnames = _interopRequireDefault(classnames);
|
||||
|
||||
|
@ -2779,7 +2779,8 @@ var Form = function (_Component) {
|
|||
{ onSubmit: this._onSubmit },
|
||||
this.renderError(),
|
||||
this.props.children
|
||||
)
|
||||
),
|
||||
React__default.createElement(lib_1, null)
|
||||
);
|
||||
}
|
||||
}, {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
|||
import React, {Component} from 'react';
|
||||
import FormContext from './FormContext';
|
||||
import {toast} from 'react-toastify';
|
||||
import {toast, ToastContainer} from 'react-toastify';
|
||||
|
||||
export default class Form extends Component
|
||||
{
|
||||
|
@ -38,6 +38,7 @@ export default class Form extends Component
|
|||
{this.renderError()}
|
||||
{this.props.children}
|
||||
</form>
|
||||
<ToastContainer />
|
||||
</FormContext.Provider>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue