Skip to content

Commit 52476dc

Browse files
committed
fix the story
1 parent 4be7cea commit 52476dc

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/components/Error/Error.stories.jsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ const Template = (args) => <Error {...args} />
1010

1111
export const Default = Template.bind({})
1212
Default.args = {
13-
errorTitle: 'Errors:',
14-
errorText: 'this is an error in dev. error block would go here',
15-
variant: 'danger',
13+
errors: {
14+
errorTitle: 'Errors:',
15+
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+
}
1618
}
1719

1820
export const Alternate = Template.bind({})
1921
Alternate.args = {
20-
errorTitle: "We're sorry, something went wrong.",
21-
errorText: 'Please refresh the page and try again. this is an error in prod',
22-
variant: 'warning',
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'],
26+
variant: 'danger'
27+
},
28+
showBackButton: false,
2329
}

0 commit comments

Comments
 (0)