add fix button loading state
This commit is contained in:
1 parent
906a76c545
commit
1187f9d4cc
2 files changed
+2
-2
No files matched your search
@@ -161,7 +161,7 @@ const useTestNotification = () => {
|
||||
} catch (error) {
|
||||
setError(error);
|
||||
createToast({
|
||||
body: t("notifications.test.failed"),
|
||||
body: error?.response?.data?.msg || t("notifications.test.failed"),
|
||||
});
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
|
||||
@@ -204,7 +204,7 @@ const CreateNotifications = () => {
|
||||
spacing={theme.spacing(2)}
|
||||
>
|
||||
<Button
|
||||
loading={isCreating || isEditing || notificationIsLoading}
|
||||
loading={isTesting}
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
onClick={onTestNotification}
|
||||
|
||||
Reference in new issue
Block a user