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

Commit4d46bba

Browse files
committed
Add more functionality
Signed-off-by: Shubham Shah <shubhamshahrising@gmail.com>
1 parentcba7f3c commit4d46bba

File tree

1 file changed

+6
-2
lines changed
  • web-app/src/containers/Tutorial/components

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { Button, Dialog, Message } from '@alifd/next'
44
interfaceProps{
55
disabled?:boolean
66
onReset():void
7+
warning?:boolean
8+
style?:React.CSSProperties
79
}
810

911
constReset=(props:Props)=>{
@@ -24,11 +26,13 @@ const Reset = (props: Props) => {
2426
return(
2527
<>
2628
<Button
27-
ghost="dark"
28-
type="secondary"
29+
ghost={props.warning ?false :'dark'}
30+
type={props.warning ?'normal' :'secondary'}
2931
size="medium"
3032
onClick={()=>setModalState('confirm')}
3133
disabled={props.disabled}
34+
warning={props.warning}
35+
style={props.style}
3236
>
3337
Reset
3438
</Button>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp