diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index ac9a5c270a3..e7502adfe64 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -7,6 +7,7 @@ import request from "../../Utils/request/request"; import routes from "../../Redux/api"; import { AbhaNumberModel } from "./types/abha"; import { useTranslation } from "react-i18next"; +import * as Notify from "../../Utils/Notifications"; interface IProps { patientId?: string; @@ -21,9 +22,9 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => { const printRef = useRef(null); const downloadAbhaCard = async (type: "pdf" | "png") => { - console.log("downloadAbhaCard", type, patientId, abha); if (!patientId || !abha?.abha_number) return; - console.log("downloadAbhaCard", type, patientId, abha); + + Notify.Success({ msg: t("downloading_abha_card") }); const { res, data } = await request(routes.abdm.healthId.getAbhaCard, { query: { abha_id: abha?.abha_number }, diff --git a/src/Components/Patient/PatientInfoCard.tsx b/src/Components/Patient/PatientInfoCard.tsx index 74354d535f8..80338066b03 100644 --- a/src/Components/Patient/PatientInfoCard.tsx +++ b/src/Components/Patient/PatientInfoCard.tsx @@ -747,7 +747,7 @@ export default function PatientInfoCard(props: { close(); setShowABHAProfile(true); triggerGoal("Patient Card Button Clicked", { - buttonName: "Show ABHA Profile", + buttonName: t("show_abha_profile"), consultationId: consultation?.id, userId: authUser?.id, }); @@ -757,7 +757,7 @@ export default function PatientInfoCard(props: { icon="l-user-square" className="text-lg text-primary-500" /> - Show ABHA Profile + {t("show_abha_profile")}
Link ABHA Number
+{t("link_abha_profile")}
)} diff --git a/src/Locale/en/ABDM.json b/src/Locale/en/ABDM.json index ac22ebd33e7..c9e0135b04b 100644 --- a/src/Locale/en/ABDM.json +++ b/src/Locale/en/ABDM.json @@ -123,5 +123,9 @@ "health_facility__not_registered_1.1": "The ABDM health facility is successfully linked with care", "health_facility__not_registered_1.2": "but not registered as a service in bridge", "health_facility__not_registered_2": "Click on Link Health Facility to register the service", - "health_facility__not_registered_3": "Not Registered" + "health_facility__not_registered_3": "Not Registered", + "downloading_abha_card": "Generating ABHA Card, Please hold on", + "abha_profile": "ABHA Profile", + "show_abha_profile": "Show ABHA Profile", + "link_abha_profile": "Link ABHA Profile" }