Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"json-loader": "^0.5.7",
"lint-staged": "^3.3.1",
"mocha": "^2.5.3",
"prettier": "^1.8.2",
"prettier": "^1.12.0",
"react": "^15.5.0",
"react-addons-test-utils": "^15.3.2",
"react-codemirror2": "^4.1.0",
Expand Down
4 changes: 3 additions & 1 deletion playground/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ class App extends Component {

onShare = () => {
const { formData, schema, uiSchema } = this.state;
const { location: { origin, pathname } } = document;
const {
location: { origin, pathname },
} = document;
try {
const hash = btoa(JSON.stringify({ formData, schema, uiSchema }));
this.setState({ shareURL: `${origin}${pathname}#${hash}` });
Expand Down
4 changes: 3 additions & 1 deletion src/components/fields/ArrayField.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,9 @@ class ArrayField extends Component {
uiSchema,
registry = getDefaultRegistry(),
} = this.props;
const { fields: { SchemaField } } = registry;
const {
fields: { SchemaField },
} = registry;
const { orderable, removable } = {
orderable: true,
removable: true,
Expand Down
8 changes: 7 additions & 1 deletion src/components/widgets/ColorWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ import React from "react";
import PropTypes from "prop-types";

function ColorWidget(props) {
const { disabled, readonly, registry: { widgets: { BaseInput } } } = props;
const {
disabled,
readonly,
registry: {
widgets: { BaseInput },
},
} = props;
return <BaseInput type="color" {...props} disabled={disabled || readonly} />;
}

Expand Down
8 changes: 7 additions & 1 deletion src/components/widgets/DateTimeWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ export function localToUTC(dateString) {
}

function DateTimeWidget(props) {
const { value, onChange, registry: { widgets: { BaseInput } } } = props;
const {
value,
onChange,
registry: {
widgets: { BaseInput },
},
} = props;
return (
<BaseInput
type="datetime-local"
Expand Down
7 changes: 6 additions & 1 deletion src/components/widgets/DateWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import React from "react";
import PropTypes from "prop-types";

function DateWidget(props) {
const { onChange, registry: { widgets: { BaseInput } } } = props;
const {
onChange,
registry: {
widgets: { BaseInput },
},
} = props;
return (
<BaseInput
type="date"
Expand Down
8 changes: 7 additions & 1 deletion src/components/widgets/RangeWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import PropTypes from "prop-types";
import { rangeSpec } from "../../utils";

function RangeWidget(props) {
const { schema, value, registry: { widgets: { BaseInput } } } = props;
const {
schema,
value,
registry: {
widgets: { BaseInput },
},
} = props;
return (
<div className="field-range-wrapper">
<BaseInput type="range" {...props} {...rangeSpec(schema)} />
Expand Down
6 changes: 5 additions & 1 deletion src/components/widgets/UpDownWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import PropTypes from "prop-types";
import { rangeSpec } from "../../utils";

function UpDownWidget(props) {
const { registry: { widgets: { BaseInput } } } = props;
const {
registry: {
widgets: { BaseInput },
},
} = props;
return <BaseInput type="number" {...props} {...rangeSpec(props.schema)} />;
}

Expand Down