We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8deb686 commit 67ecd77Copy full SHA for 67ecd77
modules/Configuration.js
@@ -1,27 +1,7 @@
1
-var warning = require('react/lib/warning');
2
var invariant = require('react/lib/invariant');
3
4
-function checkPropTypes(componentName, propTypes, props) {
5
- for (var propName in propTypes) {
6
- if (propTypes.hasOwnProperty(propName)) {
7
- var error = propTypes[propName](props, propName, componentName);
8
-
9
- if (error instanceof Error)
10
- warning(false, error.message);
11
- }
12
13
-}
14
15
var Configuration = {
16
17
- statics: {
18
19
- validateProps: function (props) {
20
- checkPropTypes(this.displayName, this.propTypes, props);
21
22
23
- },
24
25
render: function () {
26
invariant(
27
false,
0 commit comments