MCPcopy Create free account
hub / github.com/docker/getting-started / deprecated

Function deprecated

app/src/static/js/react-bootstrap.js:8155–8172  ·  view source on GitHub ↗
(validator, reason)

Source from the content-addressed store, hash-verified

8153var warned = {};
8154
8155function deprecated(validator, reason) {
8156 return function validate(props, propName, componentName, location, propFullName) {
8157 var componentNameSafe = componentName || '<<anonymous>>';
8158 var propFullNameSafe = propFullName || propName;
8159
8160 if (props[propName] != null) {
8161 var messageKey = componentName + '.' + propName;
8162 (0, _warning2.default)(warned[messageKey], 'The ' + location + ' `' + propFullNameSafe + '` of ' + ('`' + componentNameSafe + '` is deprecated. ' + reason + '.'));
8163 warned[messageKey] = true;
8164 }
8165
8166 for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
8167 args[_key - 5] = arguments[_key];
8168 }
8169
8170 return validator.apply(undefined, [props, propName, componentName, location, propFullName].concat(args));
8171 };
8172}
8173/* eslint-disable no-underscore-dangle */
8174
8175

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…