Skip to content

Commit

Permalink
added internationalization and removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hrit2773 committed Jun 27, 2024
1 parent aa4d838 commit 45ed762
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export const PatientHome = (props: any) => {
if (res?.ok && data) {
setPatientData(data);
}
console.log(data);
triggerGoal("Patient Profile Viewed", {
facilityId: facilityId,
userId: authUser.id,
Expand Down Expand Up @@ -715,7 +714,7 @@ export const PatientHome = (props: any) => {
expandIcon={<CareIcon icon="l-angle-down" className="text-2xl" />}
title={
<div className=" text-lg font-semibold text-gray-900">
Vaccination Details
{t("vaccination_details")}
</div>
}
>
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ export const PatientRegister = (props: PatientRegisterProps) => {
is_active: true,
ration_card_category: formData.ration_card_category,
};
console.log(data);
const { res, data: requestData } = id
? await request(routes.updatePatient, {
pathParams: { id },
Expand Down Expand Up @@ -1746,7 +1745,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
}
title={
<h1 className="text-left text-xl font-bold text-purple-500">
Complete Vaccination Details
{t("complete_vaccination_details")}
</h1>
}
>
Expand Down
4 changes: 3 additions & 1 deletion src/Components/Patient/PatientVaccinationDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { VaccineRegistrationModel } from "./models";

const PatientVaccinationDetails = (props: any) => {
return (
<div className=" my-7 overflow-hidden rounded-xl border-2 border-gray-400 shadow-lg">
Expand All @@ -17,7 +19,7 @@ const PatientVaccinationDetails = (props: any) => {
</tr>
</thead>
<tbody>
{props.vaccineData?.map((detail: any) => (
{props.vaccineData?.map((detail: VaccineRegistrationModel) => (
<tr className="space-x-16">
<td className="p-4 font-semibold">{detail.vaccine_name.name}</td>
<td className="p-4 font-semibold">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Patient/models.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface VaccinesData {
}

export interface VaccineRegistrationModel {
vaccine_name?: string;
vaccine_name?: any;
vaccination_center?: string;
last_vaccinated_date?: any;
number_of_doses?: string;
Expand Down
4 changes: 3 additions & 1 deletion src/Locale/en/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,7 @@
"treating_doctor": "Treating Doctor",
"ration_card__NO_CARD": "Non-card holder",
"ration_card__BPL": "BPL",
"ration_card__APL": "APL"
"ration_card__APL": "APL",
"complete_vaccination_details": "Complete Vaccination Details",
"vaccination_details": "Vaccination Details"
}

0 comments on commit 45ed762

Please sign in to comment.