Skip to content

Instantly share code, notes, and snippets.

@kanenathan213
Last active June 2, 2017 23:25
Show Gist options
  • Save kanenathan213/383d25ee6b8dfc4a509bff8d36eedbf4 to your computer and use it in GitHub Desktop.
Save kanenathan213/383d25ee6b8dfc4a509bff8d36eedbf4 to your computer and use it in GitHub Desktop.
Sections and steps
const steps = {
gettingStarted: {
slug: 'start',
contentComponent: GettingStarted,
// sectionTitle property is removed
stepType: STEP_TYPES.contentOnly,
},
email: {
slug: 'email',
contentComponent: Email,
stepType: STEP_TYPES.form,
},
...
// no more allFlowSteps property
}
const sections = {
gettingStarted: {
title: 'Getting Started',
steps: [ steps.gettingStarted ]
},
personalInfo: {
title: 'Personal Information',
steps: [ steps.gettingStarted, steps.email, steps.phone ]
},
...
allSections: [
'gettingStarted',
'personalInfo',
...
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment