Skip to content

Commit 5937019

Browse files
committed
edit a story to show how json stringified messages would look
1 parent f9cb085 commit 5937019

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/components/Notice/Notice.stories.jsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,23 @@ export const Error = Template.bind({})
2424
Error.args = {
2525
alert: {
2626
title: "We're sorry, something went wrong.",
27-
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.'],
27+
body: [
28+
JSON.stringify({
29+
message: '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.',
30+
name: 'First',
31+
status: 422,
32+
}, null, 2),
33+
JSON.stringify({
34+
message: 'This is a second error message.',
35+
name: 'Second',
36+
status: 422,
37+
}, null, 2),
38+
JSON.stringify({
39+
message: 'This is a third error message.',
40+
name: 'Third',
41+
status: 422,
42+
}, null, 2),
43+
],
2844
variant: 'warning'
2945
},
3046
buttonProps: {

0 commit comments

Comments
 (0)