File tree 2 files changed +12
-11
lines changed
web-app/src/containers/Tutorial
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'
4
4
import Markdown from '../../../components/Markdown'
5
5
6
6
interface Props {
7
+ disabled : boolean
7
8
onReset ( ) : void
8
9
}
9
10
@@ -24,7 +25,7 @@ const Reset = (props: Props) => {
24
25
25
26
return (
26
27
< >
27
- < Button type = "secondary" onClick = { ( ) => setModalState ( 'confirm' ) } >
28
+ < Button type = "secondary" onClick = { ( ) => setModalState ( 'confirm' ) } disabled = { props . disabled } >
28
29
Reset
29
30
</ Button >
30
31
< Dialog
Original file line number Diff line number Diff line change @@ -145,21 +145,21 @@ const TutorialPage = (props: PageProps) => {
145
145
</ div >
146
146
) }
147
147
{ /* 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 >
155
155
156
156
{ /* 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} /> */ }
159
159
</ div >
160
160
161
161
{ /* Right */ }
162
- < div >
162
+ < div css = { { flex : 1 , display : 'flex' , justifyContent : 'flex-end' } } >
163
163
{ level . status === 'COMPLETE' || ! level . steps . length ? (
164
164
< Button style = { { marginRight : '1rem' } } type = "primary" onClick = { onContinue } >
165
165
Continue
You can’t perform that action at this time.
0 commit comments