Skip to content

Commit 8ab1dd4

Browse files
committed
add story for api error with detail
1 parent 92aad66 commit 8ab1dd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

site/src/components/Alert/ErrorAlert.stories.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ export const WithOnlyMessage: Story = {
3434
},
3535
};
3636

37+
export const APIErrorWithDetail: Story = {
38+
args: {
39+
error: mockApiError({
40+
message: "Magic dust is missing",
41+
detail: "without magic dust, the requested operation will never work",
42+
}),
43+
},
44+
};
45+
3746
export const WithDismiss: Story = {
3847
args: {
3948
dismissible: true,

0 commit comments

Comments
 (0)