each task (step) has its own id within a tutorial

This commit is contained in:
Delucse
2020-09-13 16:02:47 +02:00
parent 6f77b460cb
commit 7300cade5d
9 changed files with 59 additions and 23 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ class Tutorial extends Component {
<div>
<Breadcrumbs content={[{link: '/', title: 'Home'},{link: '/tutorial', title: 'Tutorial'}, {link: `/tutorial/${currentTutorialId}`, title: tutorial.title}]}/>
<StepperHorizontal steps={steps}/>
<StepperHorizontal />
<div style={{display: 'flex'}}>
<StepperVertical steps={steps}/>
@@ -52,7 +52,7 @@ class Tutorial extends Component {
{step ?
step.type === 'instruction' ?
<Instruction step={step}/>
: <Assessment steps={steps} step={step}/> // if step.type === 'assessment'
: <Assessment step={step}/> // if step.type === 'assessment'
: null}
<div style={{marginTop: '20px', position: 'absolute', bottom: '10px'}}>