Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita1a661f

Browse files
committed
add footer button styles, temp hide reset
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent605bafa commita1a661f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

‎web-app/src/containers/Tutorial/components/Reset.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Button from '../../../components/Button'
44
importMarkdownfrom'../../../components/Markdown'
55

66
interfaceProps{
7+
disabled:boolean
78
onReset():void
89
}
910

@@ -24,7 +25,7 @@ const Reset = (props: Props) => {
2425

2526
return(
2627
<>
27-
<Buttontype="secondary"onClick={()=>setModalState('confirm')}>
28+
<Buttontype="secondary"onClick={()=>setModalState('confirm')}disabled={props.disabled}>
2829
Reset
2930
</Button>
3031
<Dialog

‎web-app/src/containers/Tutorial/index.tsx

Lines changed: 10 additions & 10 deletions
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-
<Buttonstyle={{marginLeft:'1rem'}}type="primary"onClick={onRunTest}disabled={processes.length>0}>
150-
Run
151-
</Button>
152-
) :(
153-
<div/>
154-
)}
148+
<divcss={{flex:1}}>
149+
{DISPLAY_RUN_TEST_BUTTON&&level.status!=='COMPLETE' ?(
150+
<Buttonstyle={{marginLeft:'1rem'}}type="primary"onClick={onRunTest}disabled={processes.length>0}>
151+
Run
152+
</Button>
153+
) :null}
154+
</div>
155155

156156
{/* Center */}
157-
<divstyle={{}}>
158-
<ResetonReset={onReset}/>
157+
<divcss={{flex:1,display:'flex',justifyContent:'center'}}>
158+
{/*<Reset onReset={onReset}disabled={processes.length > 0} /> */}
159159
</div>
160160

161161
{/* Right */}
162-
<div>
162+
<divcss={{flex:1,display:'flex',justifyContent:'flex-end'}}>
163163
{level.status==='COMPLETE'||!level.steps.length ?(
164164
<Buttonstyle={{marginRight:'1rem'}}type="primary"onClick={onContinue}>
165165
Continue

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp