@samitouri / QOS-React-2 / commits / 8dcf9c7be7

Change warning casing (#9573)

* Change warning casing * Update ReactFiberClassComponent.js * Update ReactCompositeComponent.js

Dan Abramov committed May 1, 2017 at 21:51 UTC 8dcf9c7be75f6054b5090245276a85588bdab0d9
3 files changed +3 -3
src/renderers/__tests__/ReactCompositeComponent-test.js
+1 -1
@@ -504,7 +504,7 @@ describe('ReactCompositeComponent', () => {
504
505 expectDev(console.error.calls.count()).toBe(1);
506 expectDev(console.error.calls.argsFor(0)[0]).toBe(
507 - 'Warning: setting defaultProps as an instance property on Component is not supported ' +
507 + 'Warning: Setting defaultProps as an instance property on Component is not supported ' +
508 'and will be ignored. Instead, define defaultProps as a static property on Component.',
509 );
510 });
src/renderers/shared/fiber/ReactFiberClassComponent.js
+1 -1
@@ -248,7 +248,7 @@ module.exports = function(
248 const noInstanceDefaultProps = !instance.defaultProps;
249 warning(
250 noInstanceDefaultProps,
251 - 'setting defaultProps as an instance property on %s is not supported and will be ignored.' +
251 + 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' +
252 ' Instead, define defaultProps as a static property on %s.',
253 name,
254 name,
src/renderers/shared/stack/reconciler/ReactCompositeComponent.js
+1 -1
@@ -313,7 +313,7 @@ var ReactCompositeComponent = {
313 }
314 warning(
315 !inst.defaultProps,
316 - 'setting defaultProps as an instance property on %s is not supported and will be ignored.' +
316 + 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' +
317 ' Instead, define defaultProps as a static property on %s.',
318 this.getName() || 'a component',
319 this.getName() || 'a component',