Manage errors

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2025-10-29 14:03:50 +01:00
parent 55743cbb5c
commit 9a33f7b771
84 changed files with 1483 additions and 331 deletions

View File

@@ -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",
},
};

View File

@@ -82,10 +82,8 @@ export function ConfirmDialog() {
const handleConfirm = () => {
setLoading(true);
onConfirm()
.then(() => {
close();
})
.finally(() => {
close();
setLoading(false);
});
};