You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorText: ['this is an error in dev. error block would go here','this is a second error message','this is a third error message'],
16
-
variant: 'danger'
17
-
}
13
+
alert: {
14
+
title: '',
15
+
body: ['A standard alert.'],
16
+
variant: 'warning'
17
+
},
18
+
buttonProps: {
19
+
text: 'Click to return to the previous page.'
20
+
},
21
+
dismissible: true,
22
+
withBackButton: false,
23
+
}
24
+
25
+
exportconstWithError=Template.bind({})
26
+
WithError.args={
27
+
alert: {
28
+
title: "We're sorry, something went wrong.",
29
+
body: ['This is how an error would present in dev. There are instances where there may be several api errors on a single page. We would render them all.','This is a second error message.','This is a third error message.'],
30
+
variant: 'warning'
31
+
},
32
+
buttonProps: {
33
+
onClick: ()=>console.log('click me!'),
34
+
text: 'Click to return to the previous page.'
35
+
},
36
+
dismissible: false,
37
+
withBackButton: true,
18
38
}
19
39
20
-
exportconstAlternate=Template.bind({})
21
-
Alternate.args={
22
-
canDismissAlert: true,
23
-
errors: {
24
-
errorTitle: "We're sorry, something went wrong.",
25
-
errorText: ['Please refresh the page and try again. this is an error in prod'],
0 commit comments