Skip to content

Commit fac3fc5

Browse files
authored
Merge pull request #208 from data-driven-forms/fix-demo-wizard
Removed wizard schema from initial demo
2 parents 7bca6b7 + 25d8bda commit fac3fc5

File tree

2 files changed

+5
-29
lines changed

2 files changed

+5
-29
lines changed

packages/react-renderer-demo/src/app/pages/show-case.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import Typography from '@material-ui/core/Typography';
1111

1212
import { schema, uiSchema, conditionalSchema } from '../src/schemas/widget-schema';
1313
import MiqSchema from '../src/schemas/miq-schema';
14-
import wizardSchema from '../src/schemas/wizard-schema';
1514

1615
import MapperContext from '@docs/components/mappers-context';
1716

@@ -29,7 +28,6 @@ const Forms = ({ mappers }) => {
2928
miq: { schema: MiqSchema, uiSchema: {}, schemaType: 'miq' },
3029
conditional: { schema: conditionalSchema, uiSchema: {}, schemaType: 'mozilla' },
3130
widgets: { schema, uiSchema, schemaType: 'mozilla' },
32-
wizard: { schema: wizardSchema, uiSchema: {}, schemaType: 'default' },
3331
};
3432
return (
3533
<React.Fragment>
@@ -59,7 +57,6 @@ const Forms = ({ mappers }) => {
5957
<FormControlLabel value="conditional" control={ <Radio /> } label="Conditional schema" />
6058
<FormControlLabel value="miq" control={ <Radio /> } label="Manageiq tab schema" />
6159
<FormControlLabel value="widgets" control={ <Radio /> } label="Widgets schema" />
62-
<FormControlLabel value="wizard" control={ <Radio /> } label="Wizard schema" />
6360
</RadioGroup>
6461
</FormControl>
6562
</Grid>

packages/react-renderer-demo/src/app/src/schemas/wizard-schema.js

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,7 @@
1-
//import dynamic from 'next/dynamic';
2-
//const FormRenderer = dynamic(import('@data-driven-forms/react-form-renderer'), {
3-
// ssr: false,
4-
//});
5-
6-
//const { componentTypes, validatorTypes } = FormRenderer;
1+
import { componentTypes, validatorTypes } from '@data-driven-forms/react-form-renderer';
72

83
const wizardSchema = {
94
fields: [{
10-
component: 'text-field',
11-
name: 'foo',
12-
label: 'bar'
13-
}],
14-
};
15-
16-
export default wizardSchema;
17-
18-
/**
19-
* {
205
component: componentTypes.WIZARD,
216
name: 'wizzard',
227
buttonLabels: {
@@ -71,19 +56,13 @@ export default wizardSchema;
7156
stepKey: 'google',
7257
title: 'Configure google',
7358
name: 'step-3',
74-
nextStep: 'summary',
7559
fields: [{
7660
component: componentTypes.TEXT_FIELD,
7761
name: 'google-field',
7862
label: 'Google field part',
7963
}],
80-
}, {
81-
fields: [{
82-
name: 'summary',
83-
component: 'summary',
84-
}],
85-
stepKey: 'summary',
86-
name: 'summary',
8764
}],
88-
}
89-
*/
65+
}],
66+
};
67+
68+
export default wizardSchema;

0 commit comments

Comments
 (0)