1
+ import { dialog } from '@acrool/react-dialog' ;
1
2
import type { Meta , StoryObj } from '@storybook/react' ;
2
- import { dialog } from "@acrool/react-dialog" ;
3
- import Button from " ../../atoms/Button" ;
3
+
4
+ import Button from ' ../../atoms/Button' ;
4
5
5
6
6
7
7
8
const meta = {
8
- title : 'Primary/Dialog ' ,
9
+ title : 'Primary/dialog ' ,
9
10
parameters : {
10
11
layout : 'centered' ,
11
12
actions : { argTypesRegex : '^on.*' } ,
@@ -51,7 +52,7 @@ export const WithSuccess: Story = {
51
52
dialog . success ( 'You have been logged in successfully' , {
52
53
code : 'SYS_ERR_500' ,
53
54
path : 'auth/sign' ,
54
- } )
55
+ } ) ;
55
56
} }
56
57
>
57
58
Show
@@ -71,7 +72,7 @@ export const WithInfo: Story = {
71
72
< Button
72
73
color = "primary"
73
74
onClick = { ( ) => {
74
- dialog . info ( 'You have a new message' )
75
+ dialog . info ( 'You have a new message' ) ;
75
76
} }
76
77
>
77
78
Show
@@ -90,7 +91,7 @@ export const WithWarning: Story = {
90
91
< Button
91
92
color = "primary"
92
93
onClick = { ( ) => {
93
- dialog . warning ( 'Please check if your parameter settings are correct?' )
94
+ dialog . warning ( 'Please check if your parameter settings are correct?' ) ;
94
95
} }
95
96
>
96
97
Show
@@ -110,7 +111,7 @@ export const WithError: Story = {
110
111
< Button
111
112
color = "primary"
112
113
onClick = { ( ) => {
113
- dialog . error ( 'Sorry, the account password you entered is wrong' )
114
+ dialog . error ( 'Sorry, the account password you entered is wrong' ) ;
114
115
} }
115
116
>
116
117
Show
@@ -144,7 +145,7 @@ export const WithConfirm: Story = {
144
145
dialog . success ( 'The answer is correct' ) ;
145
146
} ) ;
146
147
}
147
- } )
148
+ } ) ;
148
149
} }
149
150
>
150
151
Show
@@ -167,7 +168,7 @@ export const WithErrorCode: Story = {
167
168
{
168
169
code : '@SYS_ERR_500' ,
169
170
path : 'auth/sign' ,
170
- } )
171
+ } ) ;
171
172
} }
172
173
>
173
174
Show
0 commit comments