Skip to content

Commit 605bafa

Browse files
committed
update reset message
Signed-off-by: shmck <[email protected]>
1 parent e4b3ff9 commit 605bafa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react'
22
import { Dialog } from '@alifd/next'
33
import Button from '../../../components/Button'
4+
import Markdown from '../../../components/Markdown'
45

56
interface Props {
67
onReset(): void
@@ -26,7 +27,6 @@ const Reset = (props: Props) => {
2627
<Button type="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..."

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

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

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

0 commit comments

Comments
 (0)