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

Commite85ca35

Browse files
committed
Improved reset message design
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent76e551a commite85ca35

File tree

1 file changed

+7
-15
lines changed
  • web-app/src/containers/Tutorial/components

1 file changed

+7
-15
lines changed

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

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

65
interfaceProps{
76
disabled:boolean
@@ -29,26 +28,19 @@ const Reset = (props: Props) => {
2928
Reset
3029
</Button>
3130
<Dialog
32-
title="Reset"
3331
visible={modalState==='confirm'}
3432
onOk={onOk}
3533
onCancel={onClose}
3634
onClose={onClose}
3735
footerActions={['ok','cancel']}
3836
>
39-
<Markdown>
40-
{`Are you sure you want to reset yourprogress?
41-
Resetting progress will remove the commits you have made and replace them with the tutorial commit timeline. Your code may lookdifferent after resetting.`}
42-
</Markdown>
37+
<Messagetype="warning"title="Are you sure you want to reset?">
38+
Resetting progress will replace your progress with the tutorial's standardprogress. Your code may look
39+
different after resetting.
40+
</Message>
4341
</Dialog>
44-
<Dialog
45-
title="Resetting..."
46-
visible={modalState==='progress'}
47-
footer={false}
48-
onClose={onClose}
49-
closeable={false}
50-
>
51-
Reverting progress to an earlier commit...
42+
<Dialogvisible={modalState==='progress'}footer={false}onClose={onClose}closeable={false}>
43+
<Messagetype="loading"title="Resetting..."/>
5244
</Dialog>
5345
</>
5446
)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp