From 100c5d3f21615e3c0e2f29f68f966febfab5ce30 Mon Sep 17 00:00:00 2001 From: Skorpios Date: Mon, 17 Mar 2025 16:26:43 -0700 Subject: [PATCH] Use built-in loading prop for save button. --- .../Components/NotificationIntegrationModal.jsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx b/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx index abca40a65..5839a93a5 100644 --- a/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx +++ b/src/Components/NotificationIntegrationModal/Components/NotificationIntegrationModal.jsx @@ -307,22 +307,14 @@ const NotificationIntegrationModal = ({ variant="contained" color="accent" onClick={handleSave} - disabled={loading} + loading={loading} sx={{ width: 'auto', minWidth: theme.spacing(60), px: theme.spacing(8) }} > - {loading ? - - : t('common.save', 'Save') - } + {t('common.save', 'Save')}