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

Commitecac58b

Browse files
committed
add continue option to start new
1 parentf174afa commitecac58b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as T from 'typings/graphql'
66
interfaceProps{
77
tutorial:T.Tutorial
88
onContinue():void
9+
onNew():void
910
}
1011

1112
exportconstContinuePage=(props:Props)=>(
@@ -18,6 +19,12 @@ export const ContinuePage = (props: Props) => (
1819
<ButtononClick={props.onContinue}>Resume</Button>
1920
</div>
2021
</Card>
22+
<CardshowTitleBullet={false}contentHeight="auto">
23+
<div>
24+
<h2>Start a New Tutorial</h2>
25+
<ButtononClick={props.onNew}>Select New Tutorial</Button>
26+
</div>
27+
</Card>
2128
</div>
2229
)
2330

@@ -33,7 +40,9 @@ const ContinuePageContainer = ({ context, send }: ContainerProps) => {
3340
thrownewError('Tutorial not found')
3441
}
3542

36-
return<ContinuePagetutorial={tutorial}onContinue={()=>send('TUTORIAL_START')}/>
43+
return(
44+
<ContinuePagetutorial={tutorial}onContinue={()=>send('TUTORIAL_START')}onNew={()=>send('TUTORIAL_SELECT')}/>
45+
)
3746
}
3847

3948
exportdefaultContinuePageContainer

‎web-app/src/services/state/machine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
4949
},
5050
ContinueTutorial:{
5151
on:{
52-
TUTORIAL_START:'#tutorial',
52+
TUTORIAL_START:'#tutorial-load-next',
53+
TUTORIAL_SELECT:'SelectTutorial'
5354
},
5455
},
5556
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp