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
+ import { Input } from '../../../../../../../Form'
10
+
9
11
// TODO: Collapse this code with the radio button UI
10
12
11
- export default ( { data , rowIndex } ) =>
13
+ export default ( { name , index } ) =>
12
14
< >
13
15
< Row form >
14
16
< Col >
15
- < Control
16
- model = " .label"
17
+ < Field
18
+ name = { ` ${ name } .label` }
17
19
placeholder = "Question"
18
20
component = { Input }
19
- debounce = { 300 }
20
21
/>
21
22
</ Col >
22
23
</ Row >
23
24
< CodingGroup
24
- data = { data . options }
25
- model = ".options"
26
- itemModel = { `.rows[${ rowIndex } ][0]` }
25
+ name = { `${ name } .options` }
27
26
icon = "square"
28
27
/>
29
28
< CollapsingOptions
30
- rowIndex = { rowIndex }
29
+ name = { name }
30
+ index = { index }
31
31
shuffle = { true }
32
32
/>
33
33
</ >
You can’t perform that action at this time.
0 commit comments