Skip to content

Commit a1a661f

Browse files
committed
add footer button styles, temp hide reset
Signed-off-by: shmck <[email protected]>
1 parent 605bafa commit a1a661f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Diff for: web-app/src/containers/Tutorial/components/Reset.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Button from '../../../components/Button'
44
import Markdown from '../../../components/Markdown'
55

66
interface 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

Diff for: web-app/src/containers/Tutorial/index.tsx

+10-10
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)