feat: add language localization and refactor to remove duplicate ternary op

This commit is contained in:
Amol committed 2025-07-03 01:26:33 +05:30
1 parent 0e8a71c760
commit e2e1eff289
12 files changed
+14 -7

No files matched your search

@@ -43,6 +43,8 @@ const MonitorDetailsControlHeader = ({
const isTestNotificationsDisabled = monitor?.notifications?.length === 0;
const tooltipTitle = isTestNotificationsDisabled ? t("testNotificationsDisabled") : "";
// const [isSending, emailError, sendTestEmail] = useSendTestEmail();
const [testAllNotifications, isSending, errorAllNotifications] =
@@ -66,13 +68,7 @@ const MonitorDetailsControlHeader = ({
<Tooltip
key={monitor?._id}
placement="bottom"
title={
isTestNotificationsDisabled
? t(
'There are no notifications setup for this monitor. You need to add one by clicking "Configure" button'
)
: ""
}
title={tooltipTitle}
>
<span>
<Button