This repository was archived by the owner on Nov 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/builder/src/components/ComponentOptions/components/Content/Page/components/ItemOptions/components Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
3
- import { Control } from 'react-redux-form '
4
- import { Row , Col , Input } from 'reactstrap'
3
+ import { Field } from 'formik '
4
+ import { Row , Col } from 'reactstrap'
5
5
6
6
import { CodingGroup } from './Coding'
7
7
import { CollapsingOptions } from './BaseOptions'
8
8
9
- export default ( { data, rowIndex } ) =>
9
+ import { Input } from '../../../../../../../Form'
10
+
11
+ export default ( { name, index } ) =>
10
12
< >
11
13
< Row form >
12
14
< Col >
13
- < Control
14
- model = " .label"
15
+ < Field
16
+ name = { ` ${ name } .label` }
15
17
placeholder = "Question"
16
18
component = { Input }
17
- debounce = { 300 }
18
19
/>
19
20
</ Col >
20
21
</ Row >
21
22
< CodingGroup
22
- data = { data . options }
23
- model = ".options"
24
- itemModel = { `.rows[${ rowIndex } ][0]` }
23
+ name = { `${ name } .options` }
25
24
icon = "circle"
26
25
/>
27
26
< CollapsingOptions
28
- rowIndex = { rowIndex }
27
+ name = { name }
28
+ index = { index }
29
29
shuffle = { true }
30
30
/>
31
31
</ >
You can’t perform that action at this time.
0 commit comments