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

Commit7fb8712

Browse files
committed
add temp unstyled back button
1 parent1091125 commit7fb8712

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

‎web-app/src/Routes.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,33 @@ const Routes = () => {
1414
return(
1515
<Workspace>
1616
<Router>
17+
{/* Start */}
1718
<Routepath={['Start.Startup','Start.Authenticate','Start.NewOrContinue']}>
1819
<LoadingPagetext="Launching..."context={context}/>
1920
</Route>
21+
<Routepath="Start.ContinueTutorial">
22+
<ContinuePagesend={send}context={context}/>
23+
</Route>
2024
<Routepath="Start.Initialize">
2125
<LoadingPagetext="Initializing..."context={context}/>
2226
</Route>
2327
<Routepath={'Start.Error'}>
24-
<div>Something went wrong wrong</div>
28+
<LoadingPagetext="Error"context={context}/>
2529
</Route>
2630
<Routepath="Start.SelectTutorial">
2731
<NewPagesend={send}context={context}/>
2832
</Route>
29-
<Routepath="Start.ContinueTutorial">
30-
<ContinuePagesend={send}context={context}/>
31-
</Route>
3233
<Routepath="Start.Summary">
3334
<OverviewPagesend={send}context={context}/>
3435
</Route>
36+
{/* Tutorial */}
3537
<Routepath="Tutorial.LoadNext">
3638
<LoadingPagetext="Loading Level..."context={context}/>
3739
</Route>
3840
<Routepath="Tutorial.Level">
3941
<LevelSummaryPagesend={send}context={context}/>
4042
</Route>
43+
{/* Completed */}
4144
<Routepath="Tutorial.Completed">
4245
<CompletedPagesend={send}context={context}/>
4346
</Route>

‎web-app/src/containers/Overview/OverviewPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ interface Props {
5454
description:string
5555
levels:G.Level[]
5656
onNext():void
57+
onBack():void
5758
}
5859

59-
constSummary=({ title, description, levels, onNext}:Props)=>(
60+
constSummary=({ title, description, levels, onNext, onBack}:Props)=>(
6061
<divcss={styles.page}>
6162
<div>
6263
<divcss={styles.header}>
64+
<buttononClick={onBack}>Back</button>
6365
<span>CodeRoad</span>
6466
</div>
6567
<divcss={styles.summary}>

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ const Overview = (props: PageProps) => {
5454
},
5555
})
5656

57+
constonBack=()=>props.send({type:'BACK'})
58+
5759
const{ title, description}=data.tutorial.summary
5860
const{ levels}=data.tutorial.version.data
5961

60-
return<OverviewPagetitle={title}description={description}levels={levels}onNext={onNext}/>
62+
return<OverviewPagetitle={title}description={description}levels={levels}onNext={onNext}onBack={onBack}/>
6163
}
6264

6365
exportdefaultOverview

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp