Skip to content

Feature/step no title #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
working load checks
  • Loading branch information
ShMcK committed Oct 30, 2019
commit 626aa0d7a949d5efaeba994547905aeb463022cb
14 changes: 7 additions & 7 deletions web-app/src/containers/Tutorial/LevelPage/Level/Step/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const styles = {
card: {
display: 'grid',
gridTemplateColumns: '25px 1fr',
padding: '1rem 1rem 1rem 0.5rem',
},
content: {
margin: 0
}
padding: '1rem 1rem 1rem 0.2rem',
},
content: {
margin: 0,
},
}

const Step = (props: Props) => {
Expand All @@ -39,13 +39,13 @@ const Step = (props: Props) => {
<Checkbox
checked={props.status === 'COMPLETE'}
indeterminate={false /* TODO: running */}
disabled={props.status !== 'COMPLETE' /* TODO: and not running */}
disabled={props.status !== 'INCOMPLETE' /* TODO: and not running */}
onChange={() => {
/* do nothing */
}}
/>
</div>
<div id='content'>
<div>
<Markdown>{props.content || ''}</Markdown>
</div>
<div>{showLoadSolution && <Button onClick={onClickHandler}>Load Solution</Button>}</div>
Expand Down
1 change: 1 addition & 0 deletions web-app/src/containers/Tutorial/LevelPage/Level/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const Level = ({ level, onContinue, onLoadSolution }: Props) => {
order={index + 1}
status={step.status}
content={step.content}
onLoadSolution={onLoadSolution}
/>
})}
</div>
Expand Down