diff --git a/webapp-backoffice/src/pages/administration/dashboard/user/[id]/notifications.tsx b/webapp-backoffice/src/pages/administration/dashboard/user/[id]/notifications.tsx index b435f68e..c0a04d63 100644 --- a/webapp-backoffice/src/pages/administration/dashboard/user/[id]/notifications.tsx +++ b/webapp-backoffice/src/pages/administration/dashboard/user/[id]/notifications.tsx @@ -45,7 +45,7 @@ const NotificationsAccount: React.FC = props => { const handleNotificationsChange = async ( notifications: boolean, notificationsFrequency: NotificationFrequency - ) => { + ): Promise => { await updateUser({ id: userId, user: { @@ -61,7 +61,7 @@ const NotificationsAccount: React.FC = props => { {!user || isLoadingUser || (isRefetchingUser && ( -
+
))} @@ -140,6 +140,12 @@ const NotificationsAccount: React.FC = props => { }; const useStyles = tss.withName(NotificationsAccount.name).create({ + loaderWrapper: { + display: 'flex', + justifyContent: 'center', + alignItems: 'center', + minHeight: '100vh' + }, headerWrapper: { display: 'flex', alignItems: 'center',