Fix indentation issues
Paul O’Shannessy committed
Oct 15, 2015 at 09:29 UTC
0dc6596dc2e6a0de229bff43adc28d6c514334ba
6 files changed
+21
-18
src/renderers/dom/client/wrappers/ReactDOMInput.js
+4
-4
@@ -36,10 +36,10 @@ function forceUpdateIfMounted() {
36
function warnIfValueIsNull(props) {
37
if (props != null && props.value === null && !didWarnValueNull) {
38
warning(
39
- false,
40
- '`value` prop on `input` should not be null. ' +
41
- 'Consider using the empty string to clear the component or' +
42
- ' `undefined` for uncontrolled components.'
39
+ false,
40
+ '`value` prop on `input` should not be null. ' +
41
+ 'Consider using the empty string to clear the component or `undefined` ' +
42
+ 'for uncontrolled components.'
43
);
44
45
didWarnValueNull = true;
src/renderers/dom/client/wrappers/ReactDOMSelect.js
+4
-4
@@ -47,10 +47,10 @@ function getDeclarationErrorAddendum(owner) {
47
function warnIfValueIsNull(props) {
48
if (props != null && props.value === null && !didWarnValueNull) {
49
warning(
50
- false,
51
- '`value` prop on `select` should not be null. ' +
52
- 'Consider using the empty string to clear the component or' +
53
- ' `undefined` for uncontrolled components.'
50
+ false,
51
+ '`value` prop on `select` should not be null. ' +
52
+ 'Consider using the empty string to clear the component or `undefined` ' +
53
+ 'for uncontrolled components.'
54
);
55
56
didWarnValueNull = true;
src/renderers/dom/client/wrappers/ReactDOMTextarea.js
+4
-4
@@ -32,10 +32,10 @@ function forceUpdateIfMounted() {
32
function warnIfValueIsNull(props) {
33
if (props != null && props.value === null && !didWarnValueNull) {
34
warning(
35
- false,
36
- '`value` prop on `textarea` should not be null. ' +
37
- 'Consider using the empty string to clear the component or' +
38
- ' `undefined` for uncontrolled components.'
35
+ false,
36
+ '`value` prop on `textarea` should not be null. ' +
37
+ 'Consider using the empty string to clear the component or `undefined` ' +
38
+ 'for uncontrolled components.'
39
);
40
41
didWarnValueNull = true;
src/renderers/dom/client/wrappers/__tests__/ReactDOMInput-test.js
+3
-2
@@ -407,8 +407,9 @@ describe('ReactDOMInput', function() {
407
it('should throw warning message if value is null', function() {
408
ReactTestUtils.renderIntoDocument(<input type="text" value={null} />);
409
expect(console.error.argsForCall[0][0]).toContain(
410
- '`value` prop on `input` should not be null. Consider using the empty string to clear the component or'
411
- + ' `undefined` for uncontrolled components.'
410
+ '`value` prop on `input` should not be null. ' +
411
+ 'Consider using the empty string to clear the component or `undefined` ' +
412
+ 'for uncontrolled components.'
413
);
414
415
ReactTestUtils.renderIntoDocument(<input type="text" value={null} />);
src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js
+3
-2
@@ -469,8 +469,9 @@ describe('ReactDOMSelect', function() {
469
470
ReactTestUtils.renderIntoDocument(<select value={null}><option value="test"/></select>);
471
expect(console.error.argsForCall[0][0]).toContain(
472
- '`value` prop on `select` should not be null. Consider using the empty string to clear the component or'
473
- + ' `undefined` for uncontrolled components.'
472
+ '`value` prop on `select` should not be null. ' +
473
+ 'Consider using the empty string to clear the component or `undefined` ' +
474
+ 'for uncontrolled components.'
475
);
476
477
ReactTestUtils.renderIntoDocument(<select value={null}><option value="test"/></select>);
src/renderers/dom/client/wrappers/__tests__/ReactDOMTextarea-test.js
+3
-2
@@ -271,8 +271,9 @@ describe('ReactDOMTextarea', function() {
271
272
ReactTestUtils.renderIntoDocument(<textarea value={null} />);
273
expect(console.error.argsForCall[0][0]).toContain(
274
- '`value` prop on `textarea` should not be null. Consider using the empty string to clear the component or'
275
- + ' `undefined` for uncontrolled components.'
274
+ '`value` prop on `textarea` should not be null. ' +
275
+ 'Consider using the empty string to clear the component or `undefined` ' +
276
+ 'for uncontrolled components.'
277
);
278
279
ReactTestUtils.renderIntoDocument(<textarea value={null} />);