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

Commit605bafa

Browse files
committed
update reset message
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parente4b3ff9 commit605bafa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import*asReactfrom'react'
22
import{Dialog}from'@alifd/next'
33
importButtonfrom'../../../components/Button'
4+
importMarkdownfrom'../../../components/Markdown'
45

56
interfaceProps{
67
onReset():void
@@ -26,7 +27,6 @@ const Reset = (props: Props) => {
2627
<Buttontype="secondary"onClick={()=>setModalState('confirm')}>
2728
Reset
2829
</Button>
29-
{/* TODO improve reset message */}
3030
<Dialog
3131
title="Reset"
3232
visible={modalState==='confirm'}
@@ -35,7 +35,10 @@ const Reset = (props: Props) => {
3535
onClose={onClose}
3636
footerActions={['ok','cancel']}
3737
>
38-
Are you sure?
38+
<Markdown>
39+
{`Are you sure you want to reset your progress?
40+
Resetting progress will remove the commits you have made and replace them with the tutorial commit timeline. Your code may look different after resetting.`}
41+
</Markdown>
3942
</Dialog>
4043
<Dialog
4144
title="Resetting..."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const TutorialPage = (props: PageProps) => {
154154
)}
155155

156156
{/* Center */}
157-
<div>
157+
<divstyle={{}}>
158158
<ResetonReset={onReset}/>
159159
</div>
160160

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp