Skip to content

Commit 4559bb1

Browse files
author
Vikas Agarwal
committed
Fixed dependency of expression evaluator
Added checkbox to be accordion supported controls
1 parent 8e833ae commit 4559bb1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/projects/detail/components/Accordion/Accordion.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import './Accordion.scss'
2020
* Supported types of questions
2121
*/
2222
const TYPE = {
23+
CHECKBOX: 'checkbox',
2324
CHECKBOX_GROUP: 'checkbox-group',
2425
RADIO_GROUP: 'radio-group',
2526
ADD_ONS: 'add-ons',
@@ -150,6 +151,7 @@ class Accordion extends React.Component {
150151
}
151152

152153
switch (type) {
154+
case TYPE.CHECKBOX: return value ? 'Yes' : 'No'
153155
case TYPE.CHECKBOX_GROUP: return value.map(mapValue).join(', ')
154156
case TYPE.RADIO_GROUP: return mapValue(value)
155157
case TYPE.ADD_ONS: return `${value.length} selected`

0 commit comments

Comments
 (0)