From 5a47aedc76639b7b837beaabe3e686ac3135a450 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Mon, 29 Jul 2024 12:41:58 +0530 Subject: [PATCH] Run formatter on entire project (#8224) --- src/CAREUI/interactive/LegendInput.tsx | 2 +- src/CAREUI/interactive/Switch.tsx | 2 +- src/Common/static/countryPhoneAndFlags.json | 6 ++- src/Components/ABDM/ABDMRecordsTab.tsx | 4 +- src/Components/Assets/AssetManage.tsx | 4 +- .../Common/ExcelFIleDragAndDrop.tsx | 4 +- .../Consultations/NeurologicalTables.tsx | 6 +-- src/Components/Facility/FacilityCard.tsx | 2 +- src/Components/Facility/FacilityUsers.tsx | 2 +- .../Investigations/Reports/ReportTable.tsx | 2 +- .../AdministrationEventSeperator.tsx | 2 +- .../AdministrationTable.tsx | 4 +- .../Medicine/ResponsiveMedicineTables.tsx | 4 +- src/Components/Users/UserAdd.tsx | 2 +- src/Locale/en/Auth.json | 2 +- src/Locale/en/Bed.json | 2 +- src/Locale/en/Common.json | 2 +- src/Locale/en/Consultation.json | 2 +- src/Locale/en/Diagnosis.json | 40 +++++++++---------- src/Locale/en/Facility.json | 2 +- src/Locale/en/Medicine.json | 2 +- src/Locale/en/Users.json | 2 +- src/Locale/kn/Auth.json | 2 +- src/Locale/ml/Auth.json | 2 +- src/Locale/mr/Auth.json | 2 +- src/Locale/ta/Auth.json | 2 +- 26 files changed, 56 insertions(+), 52 deletions(-) diff --git a/src/CAREUI/interactive/LegendInput.tsx b/src/CAREUI/interactive/LegendInput.tsx index e4b16eb19fc..e164e4d1b4e 100644 --- a/src/CAREUI/interactive/LegendInput.tsx +++ b/src/CAREUI/interactive/LegendInput.tsx @@ -127,7 +127,7 @@ export default function LegendInput(props: InputProps) { required={props.required} autoComplete={props.autoComplete} className={classNames( - "cui-input bg-secondary-50 w-full rounded-md border-secondary-300 shadow-sm focus:border-2 focus:border-primary-500 focus:bg-secondary-100 focus:outline-none focus:ring-0", + "cui-input w-full rounded-md border-secondary-300 bg-secondary-50 shadow-sm focus:border-2 focus:border-primary-500 focus:bg-secondary-100 focus:outline-none focus:ring-0", props.size === "small" && "px-3 py-2 text-xs", (!props.size || !["small", "large"].includes(props.size)) && "px-4 py-3", diff --git a/src/CAREUI/interactive/Switch.tsx b/src/CAREUI/interactive/Switch.tsx index 0bdf39716c5..495722a0f39 100644 --- a/src/CAREUI/interactive/Switch.tsx +++ b/src/CAREUI/interactive/Switch.tsx @@ -26,7 +26,7 @@ export default function Switch({ size === "lg" && "px-4 py-3 text-base", props.selected === tab ? "border-primary-500 bg-primary-500 font-semibold text-white hover:bg-primary-600 focus:border-primary-500 focus:ring-primary-500" - : "bg-secondary-50 border-secondary-400 hover:bg-secondary-200 focus:border-primary-500 focus:ring-primary-500", + : "border-secondary-400 bg-secondary-50 hover:bg-secondary-200 focus:border-primary-500 focus:ring-primary-500", )} onClick={() => props.onChange(tab as T)} > diff --git a/src/Common/static/countryPhoneAndFlags.json b/src/Common/static/countryPhoneAndFlags.json index 98a43e4e043..ecc024647eb 100644 --- a/src/Common/static/countryPhoneAndFlags.json +++ b/src/Common/static/countryPhoneAndFlags.json @@ -101,7 +101,11 @@ "IL": { "flag": "🇮🇱", "name": "Israel", "code": "972" }, "IM": { "flag": "🇮🇲", "name": "Isle of Man", "code": "44-1624" }, "IN": { "flag": "🇮🇳", "name": "India", "code": "91" }, - "IO": { "flag": "🇮🇴", "name": "British Indian Ocean Territory", "code": "246" }, + "IO": { + "flag": "🇮🇴", + "name": "British Indian Ocean Territory", + "code": "246" + }, "IQ": { "flag": "🇮🇶", "name": "Iraq", "code": "964" }, "IR": { "flag": "🇮🇷", "name": "Iran", "code": "98" }, "IS": { "flag": "🇮🇸", "name": "Iceland", "code": "354" }, diff --git a/src/Components/ABDM/ABDMRecordsTab.tsx b/src/Components/ABDM/ABDMRecordsTab.tsx index f101b3ae45c..d828335cd0d 100644 --- a/src/Components/ABDM/ABDMRecordsTab.tsx +++ b/src/Components/ABDM/ABDMRecordsTab.tsx @@ -121,13 +121,13 @@ function ConsentRequestCard({ consent }: IConsentRequestCardProps) { {consent.consent_artefacts?.length ? ( -
+
{consent.consent_artefacts?.map((artefact) => ( ))}
) : ( -
+

{consent.status === "REQUESTED" ? "Waiting for the Patient to approve the consent request" diff --git a/src/Components/Assets/AssetManage.tsx b/src/Components/Assets/AssetManage.tsx index 934a4cf0d16..a9bb6eb78ea 100644 --- a/src/Components/Assets/AssetManage.tsx +++ b/src/Components/Assets/AssetManage.tsx @@ -537,7 +537,7 @@ const AssetManage = (props: AssetManageProps) => { Last Updated - + Edit @@ -564,7 +564,7 @@ const AssetManage = (props: AssetManageProps) => { Moved By - + Moved On diff --git a/src/Components/Common/ExcelFIleDragAndDrop.tsx b/src/Components/Common/ExcelFIleDragAndDrop.tsx index e7e3f0e71d2..5a6719f03df 100644 --- a/src/Components/Common/ExcelFIleDragAndDrop.tsx +++ b/src/Components/Common/ExcelFIleDragAndDrop.tsx @@ -207,7 +207,7 @@ export default function ExcelFileDragAndDrop({ {selectedFile ? ( <> setPreview(true)} > ) : ( { key={`${title}_${i}`} className="flex flex-col divide-x divide-secondary-200" > -

+
{x.date}
@@ -296,7 +296,7 @@ export const NeurologicalTable = (props: any) => { key={`loc_${i}`} className="min-w-max-content flex flex-col divide-x divide-secondary-200" > -
+
{x.date}
@@ -373,7 +373,7 @@ export const NeurologicalTable = (props: any) => { key={`glascow_${i}`} className="flex flex-col divide-x divide-secondary-200" > -
+
{x.date}
diff --git a/src/Components/Facility/FacilityCard.tsx b/src/Components/Facility/FacilityCard.tsx index 12a7d9d31c6..d6c2dce2b6c 100644 --- a/src/Components/Facility/FacilityCard.tsx +++ b/src/Components/Facility/FacilityCard.tsx @@ -168,7 +168,7 @@ export const FacilityCard = (props: { facility: any; userType: any }) => {
-
+
{/*
*/}
diff --git a/src/Components/Facility/FacilityUsers.tsx b/src/Components/Facility/FacilityUsers.tsx index cefa3630f33..77ca88618a6 100644 --- a/src/Components/Facility/FacilityUsers.tsx +++ b/src/Components/Facility/FacilityUsers.tsx @@ -185,7 +185,7 @@ export default function FacilityUsers(props: any) {
{user.phone_number && ( -
+
diff --git a/src/Components/Facility/Investigations/Reports/ReportTable.tsx b/src/Components/Facility/Investigations/Reports/ReportTable.tsx index 3a56db28e36..4d8779ca3ea 100644 --- a/src/Components/Facility/Investigations/Reports/ReportTable.tsx +++ b/src/Components/Facility/Investigations/Reports/ReportTable.tsx @@ -7,7 +7,7 @@ import { FC } from "react"; const ReportRow = ({ data, name, min, max }: any) => { return ( - + {name} diff --git a/src/Components/Medicine/MedicineAdministrationSheet/AdministrationEventSeperator.tsx b/src/Components/Medicine/MedicineAdministrationSheet/AdministrationEventSeperator.tsx index fdaa48cfea2..b52f1ed85f5 100644 --- a/src/Components/Medicine/MedicineAdministrationSheet/AdministrationEventSeperator.tsx +++ b/src/Components/Medicine/MedicineAdministrationSheet/AdministrationEventSeperator.tsx @@ -4,7 +4,7 @@ export default function AdministrationEventSeperator({ date }: { date: Date }) { // Show date if it's 00:00 if (date.getHours() === 0) { return ( -
+

{formatDateTime(date, "DD/MM")}

diff --git a/src/Components/Medicine/MedicineAdministrationSheet/AdministrationTable.tsx b/src/Components/Medicine/MedicineAdministrationSheet/AdministrationTable.tsx index f7dbacd5780..4bfc59c47c0 100644 --- a/src/Components/Medicine/MedicineAdministrationSheet/AdministrationTable.tsx +++ b/src/Components/Medicine/MedicineAdministrationSheet/AdministrationTable.tsx @@ -24,9 +24,9 @@ export default function MedicineAdministrationTable({ return (
- + - {props.theads.map((item) => { return ( - ); })} {props.actions && ( - )} diff --git a/src/Components/Users/UserAdd.tsx b/src/Components/Users/UserAdd.tsx index 182174f0304..ba218226490 100644 --- a/src/Components/Users/UserAdd.tsx +++ b/src/Components/Users/UserAdd.tsx @@ -605,7 +605,7 @@ export const UserAdd = (props: UserProps) => { options={  Need diff --git a/src/Locale/en/Auth.json b/src/Locale/en/Auth.json index e99cae72f7f..8075ca839cd 100644 --- a/src/Locale/en/Auth.json +++ b/src/Locale/en/Auth.json @@ -29,7 +29,7 @@ "password_reset_success": "Password Reset successfully", "password_reset_failure": "Password Reset Failed", "reset_password": "Reset Password", - "available_in":"Available in", + "available_in": "Available in", "sign_out": "Sign Out", "back_to_login": "Back to login", "min_password_len_8": "Minimum password length 8", diff --git a/src/Locale/en/Bed.json b/src/Locale/en/Bed.json index b410293959b..269658be774 100644 --- a/src/Locale/en/Bed.json +++ b/src/Locale/en/Bed.json @@ -10,4 +10,4 @@ "make_multiple_beds_label": "Do you want to make multiple beds?", "number_of_beds": "Number of beds", "number_of_beds_out_of_range_error": "Number of beds cannot be greater than 100" -} \ No newline at end of file +} diff --git a/src/Locale/en/Common.json b/src/Locale/en/Common.json index 1c1e3b49ecb..89faf842586 100644 --- a/src/Locale/en/Common.json +++ b/src/Locale/en/Common.json @@ -177,4 +177,4 @@ "feed_optimal_experience_for_phones": "For optimal viewing experience, consider rotating your device.", "feed_optimal_experience_for_apple_phones": "For optimal viewing experience, consider rotating your device. Ensure auto-rotate is enabled in your device settings.", "action_irreversible": "This action is irreversible" -} \ No newline at end of file +} diff --git a/src/Locale/en/Consultation.json b/src/Locale/en/Consultation.json index d811680d0fd..150c8012e38 100644 --- a/src/Locale/en/Consultation.json +++ b/src/Locale/en/Consultation.json @@ -45,4 +45,4 @@ "encounter_date_field_label__R": "Date & Time of Consultation", "back_dated_encounter_date_caution": "You are creating an encounter for", "encounter_duration_confirmation": "The duration of this encounter would be" -} \ No newline at end of file +} diff --git a/src/Locale/en/Diagnosis.json b/src/Locale/en/Diagnosis.json index 6cb301c058e..c049e9bba6f 100644 --- a/src/Locale/en/Diagnosis.json +++ b/src/Locale/en/Diagnosis.json @@ -1,21 +1,21 @@ { - "diagnosis": "Diagnosis", - "diagnoses": "Diagnoses", - "diagnosis_already_added": "This diagnosis was already added", - "principal": "Principal", - "principal_diagnosis": "Principal diagnosis", - "unconfirmed": "Unconfirmed", - "provisional": "Provisional", - "differential": "Differential", - "confirmed": "Confirmed", - "refuted": "Refuted", - "entered-in-error": "Entered in error", - "help_unconfirmed": "There is not sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.", - "help_provisional": "This is a tentative diagnosis - still a candidate that is under consideration.", - "help_differential": "One of a set of potential (and typically mutually exclusive) diagnoses asserted to further guide the diagnostic process and preliminary treatment.", - "help_confirmed": "There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.", - "help_refuted": "This condition has been ruled out by subsequent diagnostic and clinical evidence.", - "help_entered-in-error": "The statement was entered in error and is not valid.", - "search_icd11_placeholder": "Search for ICD-11 Diagnoses", - "icd11_as_recommended": "As per ICD-11 recommended by WHO" -} \ No newline at end of file + "diagnosis": "Diagnosis", + "diagnoses": "Diagnoses", + "diagnosis_already_added": "This diagnosis was already added", + "principal": "Principal", + "principal_diagnosis": "Principal diagnosis", + "unconfirmed": "Unconfirmed", + "provisional": "Provisional", + "differential": "Differential", + "confirmed": "Confirmed", + "refuted": "Refuted", + "entered-in-error": "Entered in error", + "help_unconfirmed": "There is not sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.", + "help_provisional": "This is a tentative diagnosis - still a candidate that is under consideration.", + "help_differential": "One of a set of potential (and typically mutually exclusive) diagnoses asserted to further guide the diagnostic process and preliminary treatment.", + "help_confirmed": "There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.", + "help_refuted": "This condition has been ruled out by subsequent diagnostic and clinical evidence.", + "help_entered-in-error": "The statement was entered in error and is not valid.", + "search_icd11_placeholder": "Search for ICD-11 Diagnoses", + "icd11_as_recommended": "As per ICD-11 recommended by WHO" +} diff --git a/src/Locale/en/Facility.json b/src/Locale/en/Facility.json index 19715e7e91f..5bb0a269e87 100644 --- a/src/Locale/en/Facility.json +++ b/src/Locale/en/Facility.json @@ -55,4 +55,4 @@ "discharged_patients": "Discharged Patients", "discharged_patients_empty": "No discharged patients present in this facility", "update_facility_middleware_success": "Facility middleware updated successfully" -} \ No newline at end of file +} diff --git a/src/Locale/en/Medicine.json b/src/Locale/en/Medicine.json index c21f5fa236f..d559ef2fdbf 100644 --- a/src/Locale/en/Medicine.json +++ b/src/Locale/en/Medicine.json @@ -61,4 +61,4 @@ "PRESCRIPTION_FREQUENCY_Q4H": "4th hourly", "PRESCRIPTION_FREQUENCY_QOD": "Alternate day", "PRESCRIPTION_FREQUENCY_QWK": "Once a week" -} \ No newline at end of file +} diff --git a/src/Locale/en/Users.json b/src/Locale/en/Users.json index 515c77848b4..32c6ee209c3 100644 --- a/src/Locale/en/Users.json +++ b/src/Locale/en/Users.json @@ -10,4 +10,4 @@ "average_weekly_working_hours": "Average weekly working hours", "set_average_weekly_working_hours_for": "Set Average weekly working hours for", "search_by_username": "Search by username" -} \ No newline at end of file +} diff --git a/src/Locale/kn/Auth.json b/src/Locale/kn/Auth.json index fb36b254b38..ff81099c794 100644 --- a/src/Locale/kn/Auth.json +++ b/src/Locale/kn/Auth.json @@ -23,7 +23,7 @@ "auth_login_title": "ಅಧಿಕೃತ ಲಾಗಿನ್", "forget_password": "ಪಾಸ್ವರ್ಡ್ ಮರೆತಿರಾ?", "back_to_login": "ಲಾಗಿನ್ ಪುಟಕ್ಕೆ ಹಿಂತಿರುಗಿ", - "available_in":"ಲಭ್ಯವಿರುವ ಭಾಷೆಗಳು", + "available_in": "ಲಭ್ಯವಿರುವ ಭಾಷೆಗಳು", "forget_password_instruction": "ನಿಮ್ಮ ಬಳಕೆದಾರ ಹೆಸರನ್ನು ನಮೂದಿಸಿ ಮತ್ತು ನಿಮ್ಮ ಪಾಸ್‌ವರ್ಡ್ ಅನ್ನು ಮರುಹೊಂದಿಸಲು ನಾವು ನಿಮಗೆ ಲಿಂಕ್ ಅನ್ನು ಕಳುಹಿಸುತ್ತೇವೆ.", "send_reset_link": "ಮರುಹೊಂದಿಸುವ ಲಿಂಕ್ ಕಳುಹಿಸಿ", "already_a_member": "ಈಗಾಗಲೇ ಸದಸ್ಯರೇ?", diff --git a/src/Locale/ml/Auth.json b/src/Locale/ml/Auth.json index 199bce684ec..605f013b49a 100644 --- a/src/Locale/ml/Auth.json +++ b/src/Locale/ml/Auth.json @@ -22,7 +22,7 @@ "register_page_title": "ആശുപത്രി അഡ്മിനിസ്ട്രേറ്ററായി രജിസ്റ്റർ ചെയ്യുക", "auth_login_title": "അംഗീകൃത ലോഗിൻ", "back_to_login": "ലോഗിൻ പേജിലേക്ക് മടങ്ങുക", - "available_in":"ലഭ്യമായ ഭാഷകൾ", + "available_in": "ലഭ്യമായ ഭാഷകൾ", "forget_password": "പാസ്‌വേഡ് മറന്നോ?", "forget_password_instruction": "നിങ്ങളുടെ യൂസർനെയിം/ഉപയോക്തൃനാമം നൽകുക. പാസ്‌വേഡ് പുന: സജ്ജമാക്കാൻ ഞങ്ങൾ ഒരു ലിങ്ക് അയയ്‌ക്കുന്നതായിരിക്കും.", "send_reset_link": "പുന: സജ്ജീകരണ ലിങ്ക് അയയ്‌ക്കുക", diff --git a/src/Locale/mr/Auth.json b/src/Locale/mr/Auth.json index 2154366c4f6..74d41e469c4 100644 --- a/src/Locale/mr/Auth.json +++ b/src/Locale/mr/Auth.json @@ -22,7 +22,7 @@ "register_page_title": "हॉस्पिटल व्यवस्थापक म्हणून नोंदणी करा", "auth_login_title": "अधिकृत लॉगिन", "back_to_login": "लॉगिन पृष्ठावर परत या", - "available_in":"उपलब्ध भाषा", + "available_in": "उपलब्ध भाषा", "forget_password": "पासवर्ड विसरलात?", "forget_password_instruction": "युजरनेम प्रविष्ट करा आणि आम्ही तुम्हाला पासवर्ड रीसेट करण्यासाठी एक लिंक पाठवू.", "send_reset_link": "रीसेट लिंक पाठवा", diff --git a/src/Locale/ta/Auth.json b/src/Locale/ta/Auth.json index 1d5e15f241a..d5d26caa0fc 100644 --- a/src/Locale/ta/Auth.json +++ b/src/Locale/ta/Auth.json @@ -22,7 +22,7 @@ "register_page_title": "மருத்துவமனை நிர்வாகியாக பதிவு செய்யுங்கள்", "auth_login_title": "அங்கீகரிக்கப்பட்ட உள்நுழைவு", "back_to_login": "உள்நுழைவு பக்கத்திற்குத் திரும்பு", - "available_in":"கிடைக்கும் மொழிகள்", + "available_in": "கிடைக்கும் மொழிகள்", "forget_password": "கடவுச்சொல்லை மறந்துவிட்டீர்களா?", "forget_password_instruction": "உங்கள் பயனர்பெயரை உள்ளிடவும், உங்கள் கடவுச்சொல்லை மீட்டமைக்க ஒரு இணைப்பை நாங்கள் உங்களுக்கு அனுப்புவோம்.", "send_reset_link": "மீட்டமை இணைப்பை அனுப்பவும்",
+
{t("medicine")} diff --git a/src/Components/Medicine/ResponsiveMedicineTables.tsx b/src/Components/Medicine/ResponsiveMedicineTables.tsx index 073511618f1..c3b311a68e4 100644 --- a/src/Components/Medicine/ResponsiveMedicineTables.tsx +++ b/src/Components/Medicine/ResponsiveMedicineTables.tsx @@ -37,13 +37,13 @@ export default function ResponsiveMedicineTable(props: {
+ {item} + {props.actionLabel || ""}