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

Commit 99ad1df

Browse files
Port AOI options to formik
1 parent 3768e45 commit 99ad1df

File tree

1 file changed

+6
-6
lines changed
  • packages/builder/src/components/ComponentOptions/components/Content/Canvas/components/form/Details

1 file changed

+6
-6
lines changed

packages/builder/src/components/ComponentOptions/components/Content/Canvas/components/form/Details/AoiOptions.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
33

4-
import { DropdownMenu, DropdownItem, Input,
4+
import { DropdownMenu, DropdownItem,
55
InputGroup, InputGroupAddon, InputGroupText } from 'reactstrap'
6-
import { Control } from 'react-redux-form'
6+
import { Field } from 'formik'
77

88
import Icon from '../../../../../../../Icon'
9+
import { Input } from '../../../../../../../Form'
910

1011
const AoiOptions = () =>
1112
<DropdownMenu right
@@ -20,12 +21,11 @@ const AoiOptions = () =>
2021
<Icon fixedWidth icon="tag" />
2122
</InputGroupText>
2223
</InputGroupAddon>
23-
<Control
24-
model=".label"
24+
<Field
25+
name="label"
2526
component={ Input }
2627
placeholder="Label"
27-
debounce={ 200 }
28-
className="form-control text-monospace"
28+
className="text-monospace"
2929
/>
3030
</InputGroup>
3131
</DropdownItem>

0 commit comments

Comments
 (0)