Skip to content

Commit 626aa0d

Browse files
committed
working load checks
1 parent f56ad56 commit 626aa0d

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

web-app/src/containers/Tutorial/LevelPage/Level/Step/index.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const styles = {
1515
card: {
1616
display: 'grid',
1717
gridTemplateColumns: '25px 1fr',
18-
padding: '1rem 1rem 1rem 0.5rem',
19-
},
20-
content: {
21-
margin: 0
22-
}
18+
padding: '1rem 1rem 1rem 0.2rem',
19+
},
20+
content: {
21+
margin: 0,
22+
},
2323
}
2424

2525
const Step = (props: Props) => {
@@ -39,13 +39,13 @@ const Step = (props: Props) => {
3939
<Checkbox
4040
checked={props.status === 'COMPLETE'}
4141
indeterminate={false /* TODO: running */}
42-
disabled={props.status !== 'COMPLETE' /* TODO: and not running */}
42+
disabled={props.status !== 'INCOMPLETE' /* TODO: and not running */}
4343
onChange={() => {
4444
/* do nothing */
4545
}}
4646
/>
4747
</div>
48-
<div id='content'>
48+
<div>
4949
<Markdown>{props.content || ''}</Markdown>
5050
</div>
5151
<div>{showLoadSolution && <Button onClick={onClickHandler}>Load Solution</Button>}</div>

web-app/src/containers/Tutorial/LevelPage/Level/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const Level = ({ level, onContinue, onLoadSolution }: Props) => {
7979
order={index + 1}
8080
status={step.status}
8181
content={step.content}
82+
onLoadSolution={onLoadSolution}
8283
/>
8384
})}
8485
</div>

0 commit comments

Comments
 (0)