@@ -196,7 +196,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
196
196
) {
197
197
printWarning (
198
198
'You are manually calling a React.PropTypes validation ' +
199
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
199
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
200
200
'and will throw in the standalone `prop-types` package. ' +
201
201
'You may be seeing this warning due to a third-party PropTypes ' +
202
202
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
@@ -445,8 +445,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
445
445
if ( propType !== 'object' ) {
446
446
return new PropTypeError ( 'Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ( 'supplied to `' + componentName + '`, expected `object`.' ) ) ;
447
447
}
448
- // We need to check all keys in case some are required but missing from
449
- // props.
448
+ // We need to check all keys in case some are required but missing from props.
450
449
var allKeys = assign ( { } , props [ propName ] , shapeTypes ) ;
451
450
for ( var key in allKeys ) {
452
451
var checker = shapeTypes [ key ] ;
@@ -457,7 +456,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
457
456
return new PropTypeError (
458
457
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
459
458
'\nBad object: ' + JSON . stringify ( props [ propName ] , null , ' ' ) +
460
- '\nValid keys: ' + JSON . stringify ( Object . keys ( shapeTypes ) , null , ' ' )
459
+ '\nValid keys: ' + JSON . stringify ( Object . keys ( shapeTypes ) , null , ' ' )
461
460
) ;
462
461
}
463
462
var error = checker ( propValue , key , componentName , location , propFullName + '.' + key , ReactPropTypesSecret ) ;
0 commit comments