Skip to content

Commit 0401435

Browse files
committed
Return demo to normal
1 parent 0fa850f commit 0401435

File tree

1 file changed

+3
-34
lines changed
  • packages/carbon-component-mapper/demo

1 file changed

+3
-34
lines changed

packages/carbon-component-mapper/demo/index.js

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import FormRenderer from '@data-driven-forms/react-form-renderer';
4-
// import { arraySchemaDDF } from './demo-schemas/widget-schema';
4+
import { arraySchemaDDF } from './demo-schemas/widget-schema';
55
import { componentMapper, FormTemplate } from '../src';
66
import { wizardSchema } from './demo-schemas/wizard-schema';
77
import sandboxSchema from './demo-schemas/sandbox';
@@ -10,7 +10,7 @@ import demoSchema from '@data-driven-forms/common/src/demoschema';
1010
import { Button } from 'carbon-components-react';
1111

1212
const fieldArrayState = {
13-
schema: demoSchema,
13+
schema: arraySchemaDDF,
1414
additionalOptions: {
1515
initialValues: {
1616
number: [1, 2, 3, 4],
@@ -45,38 +45,7 @@ class App extends React.Component {
4545
componentMapper={componentMapper}
4646
FormTemplate={(props) => <FormTemplate {...props} showFormControls={this.state.additionalOptions.showFormControls} />}
4747
onCancel={console.log}
48-
//schema={this.state.schema}
49-
schema={{
50-
fields: [
51-
{
52-
component: 'dual-list-select',
53-
name: 'dual-list',
54-
label: 'select animal',
55-
options: [
56-
{
57-
value: 'cats',
58-
label: 'cats'
59-
},
60-
{
61-
value: 'cats_1',
62-
label: 'cats_1'
63-
},
64-
{
65-
value: 'cats_2',
66-
label: 'cats_2'
67-
},
68-
{
69-
value: 'zebras',
70-
label: 'zebras'
71-
},
72-
{
73-
value: 'pigeons',
74-
label: 'pigeons'
75-
}
76-
]
77-
}
78-
]
79-
}}
48+
schema={this.state.schema}
8049
{...this.state.additionalOptions}
8150
/>
8251
</div>

0 commit comments

Comments
 (0)