Skip to content

Commit

Permalink
feat: create new stepper component
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda authored and Meena Brend committed Jan 24, 2022
1 parent 1c5d863 commit 84e2285
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ module.exports = function (cardscript) {

function parseElement (element) {
switch (element.type) {
case 'Container':
element.items.forEach(parseElement)
break
case 'Collapsible':
element.card.body.forEach(parseElement)
break
Expand All @@ -15,16 +12,19 @@ module.exports = function (cardscript) {
case 'CardList':
element.card.body.forEach(parseElement)
break
case 'Column':
element.items.forEach(parseElement)
break
case 'Input.ApiLookup':
if (element.parametersCard) element.parametersCard.body.forEach(parseElement)
break
case 'TabSet':
element.tabs.forEach(parseElement)
break
case 'Steppers':
element.steps.forEach(parseElement)
break
case 'Tab':
case 'Step':
case 'Container':
case 'Column':
element.items.forEach(parseElement)
break
case 'Graph':
Expand Down

0 comments on commit 84e2285

Please sign in to comment.