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

Commit

Permalink
Port slider item to formik
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Aug 6, 2020
1 parent fb36be9 commit 8b494b3
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
import React from 'react'

import { Control } from 'react-redux-form'
import { Row, Col, Input } from 'reactstrap'
import { Field } from 'formik'
import { Row, Col } from 'reactstrap'

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

import { CollapsingOptions } from './BaseOptions'
import { ExtraOptions } from './Input'

export default ({ rowIndex }) =>
export default ({ name, index }) =>
<>
<Row form>
<Col>
<Control
model=".label"
<Field
name={ `${ name }.label` }
placeholder="Question"
component={ Input }
debounce={ 300 }
/>
</Col>
</Row>
<CollapsingOptions
rowIndex={ rowIndex }
name={ name }
index={ index }
borderTop={ false }
>
<div className="mt-2">
<ExtraOptions type="number" />
<ExtraOptions name={ name } type="number" />
</div>
</CollapsingOptions>
</>

0 comments on commit 8b494b3

Please sign in to comment.