File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed
web-app/src/containers/Tutorial Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Button from '../../../components/Button'
44import Markdown from '../../../components/Markdown'
55
66interface Props {
7+ disabled : boolean
78 onReset ( ) : void
89}
910
@@ -24,7 +25,7 @@ const Reset = (props: Props) => {
2425
2526 return (
2627 < >
27- < Button type = "secondary" onClick = { ( ) => setModalState ( 'confirm' ) } >
28+ < Button type = "secondary" onClick = { ( ) => setModalState ( 'confirm' ) } disabled = { props . disabled } >
2829 Reset
2930 </ Button >
3031 < Dialog
Original file line number Diff line number Diff line change @@ -145,21 +145,21 @@ const TutorialPage = (props: PageProps) => {
145145 </ div >
146146 ) }
147147 { /* Left */ }
148- { DISPLAY_RUN_TEST_BUTTON && level . status !== 'COMPLETE' ? (
149- < Button style = { { marginLeft : '1rem' } } type = "primary" onClick = { onRunTest } disabled = { processes . length > 0 } >
150- Run
151- </ Button >
152- ) : (
153- < div />
154- ) }
148+ < div css = { { flex : 1 } } >
149+ { DISPLAY_RUN_TEST_BUTTON && level . status !== 'COMPLETE' ? (
150+ < Button style = { { marginLeft : '1rem' } } type = "primary" onClick = { onRunTest } disabled = { processes . length > 0 } >
151+ Run
152+ </ Button >
153+ ) : null }
154+ </ div >
155155
156156 { /* Center */ }
157- < div style = { { } } >
158- < Reset onReset = { onReset } />
157+ < div css = { { flex : 1 , display : 'flex' , justifyContent : 'center' } } >
158+ { /* <Reset onReset={onReset} disabled={processes.length > 0} /> */ }
159159 </ div >
160160
161161 { /* Right */ }
162- < div >
162+ < div css = { { flex : 1 , display : 'flex' , justifyContent : 'flex-end' } } >
163163 { level . status === 'COMPLETE' || ! level . steps . length ? (
164164 < Button style = { { marginRight : '1rem' } } type = "primary" onClick = { onContinue } >
165165 Continue
You can’t perform that action at this time.
0 commit comments