extract success toast message strings

This commit is contained in:
Vishnu Sreekumaran Nair
2025-03-19 15:55:39 -04:00
parent ced3ad1757
commit 139ae00613
2 changed files with 3 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ const CreateInfrastructureMonitor = () => {
: await dispatch(updateInfrastructureMonitor({ monitorId, monitor: form }));
if (action.meta.requestStatus === "fulfilled") {
createToast({
body: isCreate ? "Infrastructure monitor created successfully!" : "Infrastructure monitor updated successfully!",
body: isCreate ? t("infrastructureMonitorCreated") : t("infrastructureMonitorUpdated"),
});
navigate("/infrastructure");
} else {