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

Commit

Permalink
Port AOI options to formik
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Aug 5, 2020
1 parent 3768e45 commit 99ad1df
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import PropTypes from 'prop-types'

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

import Icon from '../../../../../../../Icon'
import { Input } from '../../../../../../../Form'

const AoiOptions = () =>
<DropdownMenu right
Expand All @@ -20,12 +21,11 @@ const AoiOptions = () =>
<Icon fixedWidth icon="tag" />
</InputGroupText>
</InputGroupAddon>
<Control
model=".label"
<Field
name="label"
component={ Input }
placeholder="Label"
debounce={ 200 }
className="form-control text-monospace"
className="text-monospace"
/>
</InputGroup>
</DropdownItem>
Expand Down

0 comments on commit 99ad1df

Please sign in to comment.