Skip to content

Commit e1866f7

Browse files
authored
Update prettier and fix files (#892)
1 parent 5b24c39 commit e1866f7

File tree

8 files changed

+39
-8
lines changed

8 files changed

+39
-8
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"json-loader": "^0.5.7",
8080
"lint-staged": "^3.3.1",
8181
"mocha": "^2.5.3",
82-
"prettier": "^1.8.2",
82+
"prettier": "^1.12.0",
8383
"react": "^15.5.0",
8484
"react-addons-test-utils": "^15.3.2",
8585
"react-codemirror2": "^4.1.0",

playground/app.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,9 @@ class App extends Component {
380380

381381
onShare = () => {
382382
const { formData, schema, uiSchema } = this.state;
383-
const { location: { origin, pathname } } = document;
383+
const {
384+
location: { origin, pathname },
385+
} = document;
384386
try {
385387
const hash = btoa(JSON.stringify({ formData, schema, uiSchema }));
386388
this.setState({ shareURL: `${origin}${pathname}#${hash}` });

src/components/fields/ArrayField.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ class ArrayField extends Component {
619619
uiSchema,
620620
registry = getDefaultRegistry(),
621621
} = this.props;
622-
const { fields: { SchemaField } } = registry;
622+
const {
623+
fields: { SchemaField },
624+
} = registry;
623625
const { orderable, removable } = {
624626
orderable: true,
625627
removable: true,

src/components/widgets/ColorWidget.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ import React from "react";
22
import PropTypes from "prop-types";
33

44
function ColorWidget(props) {
5-
const { disabled, readonly, registry: { widgets: { BaseInput } } } = props;
5+
const {
6+
disabled,
7+
readonly,
8+
registry: {
9+
widgets: { BaseInput },
10+
},
11+
} = props;
612
return <BaseInput type="color" {...props} disabled={disabled || readonly} />;
713
}
814

src/components/widgets/DateTimeWidget.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ export function localToUTC(dateString) {
3333
}
3434

3535
function DateTimeWidget(props) {
36-
const { value, onChange, registry: { widgets: { BaseInput } } } = props;
36+
const {
37+
value,
38+
onChange,
39+
registry: {
40+
widgets: { BaseInput },
41+
},
42+
} = props;
3743
return (
3844
<BaseInput
3945
type="datetime-local"

src/components/widgets/DateWidget.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import React from "react";
22
import PropTypes from "prop-types";
33

44
function DateWidget(props) {
5-
const { onChange, registry: { widgets: { BaseInput } } } = props;
5+
const {
6+
onChange,
7+
registry: {
8+
widgets: { BaseInput },
9+
},
10+
} = props;
611
return (
712
<BaseInput
813
type="date"

src/components/widgets/RangeWidget.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import PropTypes from "prop-types";
44
import { rangeSpec } from "../../utils";
55

66
function RangeWidget(props) {
7-
const { schema, value, registry: { widgets: { BaseInput } } } = props;
7+
const {
8+
schema,
9+
value,
10+
registry: {
11+
widgets: { BaseInput },
12+
},
13+
} = props;
814
return (
915
<div className="field-range-wrapper">
1016
<BaseInput type="range" {...props} {...rangeSpec(schema)} />

src/components/widgets/UpDownWidget.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import PropTypes from "prop-types";
44
import { rangeSpec } from "../../utils";
55

66
function UpDownWidget(props) {
7-
const { registry: { widgets: { BaseInput } } } = props;
7+
const {
8+
registry: {
9+
widgets: { BaseInput },
10+
},
11+
} = props;
812
return <BaseInput type="number" {...props} {...rangeSpec(props.schema)} />;
913
}
1014

0 commit comments

Comments
 (0)