@@ -12,6 +12,6 @@ type Story = StoryObj<typeof ErrorLayout>;
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
title: "Something went wrong",
|
||||
description: "An unexpected error occurred. Please try again later.",
|
||||
description: "An unexpected error occurred",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -82,10 +82,8 @@ export function ConfirmDialog() {
|
||||
const handleConfirm = () => {
|
||||
setLoading(true);
|
||||
onConfirm()
|
||||
.then(() => {
|
||||
close();
|
||||
})
|
||||
.finally(() => {
|
||||
close();
|
||||
setLoading(false);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user