Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit fc3ccff

Browse files
Port sequence options to formik
1 parent 201a6a5 commit fc3ccff

File tree

1 file changed

+8
-10
lines changed
  • packages/builder/src/components/ComponentOptions/components/Content/Sequence

1 file changed

+8
-10
lines changed

packages/builder/src/components/ComponentOptions/components/Content/Sequence/index.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react'
22

3-
import { Col, FormGroup, Label, CustomInput } from 'reactstrap'
4-
import { Control } from 'react-redux-form'
3+
import { Col, FormGroup, Label } from 'reactstrap'
4+
import { Field } from 'formik'
55

6-
import Form from '../../RRFForm'
6+
import Form from '../../Form'
7+
import { CustomInput } from '../../../../Form'
78
import Card from '../../../../Card'
89

910
export default ({ id, data }) =>
@@ -25,14 +26,11 @@ export default ({ id, data }) =>
2526
</Col>
2627
<Col xs={10}>
2728
<FormGroup check>
28-
<Control.checkbox
29-
model=".shuffle"
29+
<Field
30+
name="shuffle" id="shuffle"
3031
component={ CustomInput }
31-
controlProps={{
32-
id: 'shuffle',
33-
type: 'checkbox',
34-
label: 'Shuffle nested components',
35-
}}
32+
type="checkbox"
33+
label="Shuffle nested components"
3634
/>
3735
</FormGroup>
3836
</Col>

0 commit comments

Comments
 (0)