Skip to content

Commit

Permalink
Merge pull request #516 from AkshataKatwal16/master-data
Browse files Browse the repository at this point in the history
Issue feat: Change translation keys
  • Loading branch information
itsvick authored Feb 13, 2025
2 parents 0a556ea + 08a2d95 commit df8fab1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/notification-templates/AddTemplateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ const AddTemplateForm: React.FC<TemplateDetailsProps> = ({

console.log("response", response);
if (response?.responseCode === 'Created') {
showToastMessage(t("NOTIFICATION_TEMPLATE.TEMPLATE_ADDED_SUCCESS"), "success");
showToastMessage(t("NOTIFICATION.TEMPLATE_ADDED_SUCCESS"), "success");
} else if (response?.responseCode === "OK") {
showToastMessage(t("NOTIFICATION_TEMPLATE.TEMPLATE_UPDATED_SUCCESS"), "success");
showToastMessage(t("NOTIFICATION.TEMPLATE_UPDATED_SUCCESS"), "success");
} queryClient.invalidateQueries({
queryKey: [QueryKeys.GET_ALL_NOTIFICATION_TEMPLATE],
exact: false,
Expand All @@ -248,7 +248,7 @@ const AddTemplateForm: React.FC<TemplateDetailsProps> = ({
const isSmsFilled = data.sms.subject?.trim() && data.sms.body?.trim();

if (!isEmailFilled && !isPushFilled && !isSmsFilled) {
showToastMessage(t("NOTIFICATION_TEMPLATE.PLEASE_FILL_REQUIRED_FIELDS"), "warning");
showToastMessage(t("NOTIFICATION.PLEASE_FILL_REQUIRED_FIELDS"), "warning");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/notification-templates/TemplateTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const TemplateTable: React.FC<TemplateTableProps> = ({ searchKey = '', context }
{
confirmationModalOpen &&
<ConfirmationModal
message={t("NOTIFICATION_TEMPLATE.DELETE_TEMPLATE_ALERT")}
message={t("NOTIFICATION.DELETE_TEMPLATE_ALERT")}
handleAction={() => deleteTemplate(templateToBeDeleted?.actionId)}
buttonNames={{ primary: t("COMMON.YES"), secondary: t("COMMON.CANCEL") }
}
Expand Down

0 comments on commit df8fab1

Please sign in to comment.