fix(monitors): address PR feedback on mobile card views and modal selection state

This commit is contained in:
ashu130698 committed 2026-05-14 15:48:55 +05:30
1 parent eeee6db94e
commit 7a5ee6ba05
4 files changed
+39 -11

No files matched your search

@@ -142,7 +142,7 @@ export function DataTable<
>
<Typography
component="div"
color={theme.palette.text.primary}
color={theme.palette.text.secondary}
>
{header.mobileLabel ?? header.content}
</Typography>
@@ -14,14 +14,14 @@ interface BulkEditNotificationsModalProps {
open: boolean;
onClose: () => void;
selectedMonitors: string[];
onSuccess: () => void;
onComplete: (success: boolean) => void;
}
export const BulkEditNotificationsModal: React.FC<BulkEditNotificationsModalProps> = ({
open,
onClose,
selectedMonitors,
onSuccess,
onComplete,
}) => {
const { t } = useTranslation();
const theme = useTheme();
@@ -55,9 +55,7 @@ export const BulkEditNotificationsModal: React.FC<BulkEditNotificationsModalProp
action,
});
if (res) {
onSuccess();
}
onComplete(!!res);
};
// Prevent submitting empty arrays unless the action is 'set' (as per PR feedback!)