1+ import { dialog } from '@acrool/react-dialog' ;
12import 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' ;
45
56
67
78const meta = {
8- title : 'Primary/Dialog ' ,
9+ title : 'Primary/dialog ' ,
910 parameters : {
1011 layout : 'centered' ,
1112 actions : { argTypesRegex : '^on.*' } ,
@@ -51,7 +52,7 @@ export const WithSuccess: Story = {
5152 dialog . success ( 'You have been logged in successfully' , {
5253 code : 'SYS_ERR_500' ,
5354 path : 'auth/sign' ,
54- } )
55+ } ) ;
5556 } }
5657 >
5758 Show
@@ -71,7 +72,7 @@ export const WithInfo: Story = {
7172 < Button
7273 color = "primary"
7374 onClick = { ( ) => {
74- dialog . info ( 'You have a new message' )
75+ dialog . info ( 'You have a new message' ) ;
7576 } }
7677 >
7778 Show
@@ -90,7 +91,7 @@ export const WithWarning: Story = {
9091 < Button
9192 color = "primary"
9293 onClick = { ( ) => {
93- dialog . warning ( 'Please check if your parameter settings are correct?' )
94+ dialog . warning ( 'Please check if your parameter settings are correct?' ) ;
9495 } }
9596 >
9697 Show
@@ -110,7 +111,7 @@ export const WithError: Story = {
110111 < Button
111112 color = "primary"
112113 onClick = { ( ) => {
113- dialog . error ( 'Sorry, the account password you entered is wrong' )
114+ dialog . error ( 'Sorry, the account password you entered is wrong' ) ;
114115 } }
115116 >
116117 Show
@@ -144,7 +145,7 @@ export const WithConfirm: Story = {
144145 dialog . success ( 'The answer is correct' ) ;
145146 } ) ;
146147 }
147- } )
148+ } ) ;
148149 } }
149150 >
150151 Show
@@ -167,7 +168,7 @@ export const WithErrorCode: Story = {
167168 {
168169 code : '@SYS_ERR_500' ,
169170 path : 'auth/sign' ,
170- } )
171+ } ) ;
171172 } }
172173 >
173174 Show
0 commit comments