This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
forked from FelixHenninger/lab.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3b92ad
commit d065afd
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
...nents/ComponentOptions/components/Content/Page/components/ItemOptions/components/Radio.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +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 { CodingGroup } from './Coding' | ||
import { CollapsingOptions } from './BaseOptions' | ||
|
||
export default ({ data, rowIndex }) => | ||
import { Input } from '../../../../../../../Form' | ||
|
||
export default ({ name, index }) => | ||
<> | ||
<Row form> | ||
<Col> | ||
<Control | ||
model=".label" | ||
<Field | ||
name={ `${ name }.label` } | ||
placeholder="Question" | ||
component={ Input } | ||
debounce={ 300 } | ||
/> | ||
</Col> | ||
</Row> | ||
<CodingGroup | ||
data={ data.options } | ||
model=".options" | ||
itemModel={ `.rows[${ rowIndex }][0]` } | ||
name={ `${ name }.options` } | ||
icon="circle" | ||
/> | ||
<CollapsingOptions | ||
rowIndex={ rowIndex } | ||
name={ name } | ||
index={ index } | ||
shuffle={ true } | ||
/> | ||
</> |