Skip to content

Commit e171622

Browse files
committed
Fix fallout from 4b35d31
1 parent d133d8f commit e171622

23 files changed

+84
-1723
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@babel/preset-typescript"
66
],
77
"plugins": [
8-
"@babel/proposal-class-properties",
9-
"@babel/proposal-object-rest-spread"
8+
"@babel/plugin-transform-class-properties",
9+
"@babel/plugin-transform-object-rest-spread"
1010
]
1111
}

.eslintrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"parser": "@typescript-eslint/parser",
33
"extends": [
4-
"react-app",
54
"plugin:prettier/recommended",
65
"plugin:@typescript-eslint/recommended",
7-
"prettier"
6+
"plugin:react/recommended"
87
],
98
"plugins": ["@typescript-eslint"],
109
"env": {
@@ -19,7 +18,7 @@
1918
},
2019
"settings": {
2120
"react": {
22-
"version": "16"
21+
"version": "18"
2322
}
2423
},
2524
"rules": {

example/components/JsonSchemaFormSuite.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const Form = withTheme(
5656
) as unknown as FunctionComponent<FormProps>;
5757

5858
// return error message for parsing or blank if no error
59-
function checkError(text: string, language: string) {
59+
function checkError(text: string) {
6060
let data;
6161
try {
6262
data = JSON.parse(text);
@@ -121,8 +121,8 @@ class JsonSchemaFormEditor extends React.Component<Props, State> {
121121
}
122122

123123
render() {
124-
const schemaError = checkError(this.props.schema, this.props.lang);
125-
const schemaUiError = checkError(this.props.uischema, this.props.lang);
124+
const schemaError = checkError(this.props.schema);
125+
const schemaUiError = checkError(this.props.uischema);
126126
return (
127127
<div
128128
style={{

example/components/PlaygroundContainer.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ export default function PlaygroundContainer({ title }: { title: string }) {
4242
<p>
4343
The Visual Form Builder tab corresponds to the actual Form Builder
4444
component. This reads in code from the JSON Schema, which is stored
45-
and updated live in the "Edit Schema" tab, and renders the code as
46-
manipulatable form elements. The result of the form is rendered with
47-
the material design theme in the Preview Form tab. The Pre-Configured
48-
Components tab also demonstrates how the form builder takes advantage
49-
of the definitions property of JSON Schema to render definitions.
45+
and updated live in the &quot;Edit Schema&quot; tab, and renders the
46+
code as manipulatable form elements. The result of the form is
47+
rendered with the material design theme in the Preview Form tab. The
48+
Pre-Configured Components tab also demonstrates how the form builder
49+
takes advantage of the definitions property of JSON Schema to render
50+
definitions.
5051
</p>
5152
</div>
5253
<JsonSchemaFormSuite

0 commit comments

Comments
 (0)