Skip to content

Commit

Permalink
Run formatter on entire project (#8224)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Jul 29, 2024
1 parent f76248c commit 5a47aed
Show file tree
Hide file tree
Showing 26 changed files with 56 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/CAREUI/interactive/LegendInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/CAREUI/interactive/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Switch<T extends string>({
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)}
>
Expand Down
6 changes: 5 additions & 1 deletion src/Common/static/countryPhoneAndFlags.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
4 changes: 2 additions & 2 deletions src/Components/ABDM/ABDMRecordsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ function ConsentRequestCard({ consent }: IConsentRequestCardProps) {
</div>
</div>
{consent.consent_artefacts?.length ? (
<div className="bg-secondary-50 flex flex-wrap items-center justify-center border-t border-secondary-200 px-4 py-5 sm:gap-4">
<div className="flex flex-wrap items-center justify-center border-t border-secondary-200 bg-secondary-50 px-4 py-5 sm:gap-4">
{consent.consent_artefacts?.map((artefact) => (
<ConsentArtefactCard key={artefact.id} artefact={artefact} />
))}
</div>
) : (
<div className="bg-secondary-50 border-t border-secondary-200 px-4 py-5 sm:gap-4">
<div className="border-t border-secondary-200 bg-secondary-50 px-4 py-5 sm:gap-4">
<p className="text-center text-sm text-secondary-800">
{consent.status === "REQUESTED"
? "Waiting for the Patient to approve the consent request"
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Assets/AssetManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ const AssetManage = (props: AssetManageProps) => {
<th className="bg-secondary-50 px-6 py-3 text-center text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
Last Updated
</th>
<th className="bg-secondary-50 relative right-10 px-6 py-3 text-right text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
<th className="relative right-10 bg-secondary-50 px-6 py-3 text-right text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
Edit
</th>
</tr>
Expand All @@ -564,7 +564,7 @@ const AssetManage = (props: AssetManageProps) => {
<th className="bg-secondary-50 px-6 py-3 text-center text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
Moved By
</th>
<th className="bg-secondary-50 relative right-5 px-6 py-3 text-right text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
<th className="relative right-5 bg-secondary-50 px-6 py-3 text-right text-xs font-medium uppercase leading-4 tracking-wider text-secondary-500">
Moved On
</th>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Common/ExcelFIleDragAndDrop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function ExcelFileDragAndDrop({
{selectedFile ? (
<>
<span
className="focus:ring-blue active:bg-secondary-50 mx-auto mt-4 max-w-xs cursor-pointer items-center rounded-md border border-primary-500 bg-white px-3 py-2 text-sm font-medium leading-4 text-primary-700 transition duration-150 ease-in-out hover:text-primary-500 hover:shadow focus:border-primary-300 focus:outline-none active:text-primary-800"
className="focus:ring-blue mx-auto mt-4 max-w-xs cursor-pointer items-center rounded-md border border-primary-500 bg-white px-3 py-2 text-sm font-medium leading-4 text-primary-700 transition duration-150 ease-in-out hover:text-primary-500 hover:shadow focus:border-primary-300 focus:outline-none active:bg-secondary-50 active:text-primary-800"
onClick={() => setPreview(true)}
>
<CareIcon
Expand All @@ -220,7 +220,7 @@ export default function ExcelFileDragAndDrop({
</>
) : (
<a
className="focus:ring-blue active:bg-secondary-50 mx-auto mt-4 max-w-xs items-center rounded-md border border-primary-500 bg-white px-3 py-2 text-sm font-medium leading-4 text-primary-700 transition duration-150 ease-in-out hover:text-primary-500 hover:shadow focus:border-primary-300 focus:outline-none active:text-primary-800"
className="focus:ring-blue mx-auto mt-4 max-w-xs items-center rounded-md border border-primary-500 bg-white px-3 py-2 text-sm font-medium leading-4 text-primary-700 transition duration-150 ease-in-out hover:text-primary-500 hover:shadow focus:border-primary-300 focus:outline-none active:bg-secondary-50 active:text-primary-800"
href={sampleLink}
target="_blank"
download
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Facility/Consultations/NeurologicalTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DataTable = (props: any) => {
key={`${title}_${i}`}
className="flex flex-col divide-x divide-secondary-200"
>
<div className="bg-secondary-50 w-20 px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-900">
<div className="w-20 bg-secondary-50 px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-900">
{x.date}
</div>
<div className="whitespace-nowrap bg-white px-2 py-4 text-center text-sm leading-5 text-secondary-900">
Expand Down Expand Up @@ -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"
>
<div className="bg-secondary-50 border-r px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-700">
<div className="border-r bg-secondary-50 px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-700">
{x.date}
</div>
<div className="whitespace-nowrap bg-white px-6 py-4 text-center text-sm leading-5 text-secondary-700">
Expand Down Expand Up @@ -373,7 +373,7 @@ export const NeurologicalTable = (props: any) => {
key={`glascow_${i}`}
className="flex flex-col divide-x divide-secondary-200"
>
<div className="bg-secondary-50 w-20 px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-800">
<div className="w-20 bg-secondary-50 px-2 py-3 text-center text-xs font-medium leading-4 text-secondary-800">
{x.date}
</div>
<div className="whitespace-nowrap bg-white px-6 py-4 text-center text-sm leading-5 text-secondary-800">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/FacilityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const FacilityCard = (props: { facility: any; userType: any }) => {
</div>
</div>
</div>
<div className="bg-secondary-50 flex flex-wrap border-t px-2 py-1 md:px-3">
<div className="flex flex-wrap border-t bg-secondary-50 px-2 py-1 md:px-3">
{/* <div className="flex justify-between py-2"> */}
<div className="flex w-full flex-wrap justify-between gap-2 py-2">
<div className="flex flex-wrap gap-2">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default function FacilityUsers(props: any) {
</div>
<div className="flex justify-between">
{user.phone_number && (
<div className="bg-secondary-50 mt-2 border-t px-6 py-2">
<div className="mt-2 border-t bg-secondary-50 px-6 py-2">
<div className="flex justify-between py-4">
<div>
<div className="leading-relaxed text-secondary-500">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { FC } from "react";

const ReportRow = ({ data, name, min, max }: any) => {
return (
<tr className="even:bg-secondary-50 bg-white">
<tr className="bg-white even:bg-secondary-50">
<td className="whitespace-nowrap px-6 py-4 text-sm font-medium text-secondary-900">
{name}
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function AdministrationEventSeperator({ date }: { date: Date }) {
// Show date if it's 00:00
if (date.getHours() === 0) {
return (
<div className="bg-secondary-50 mx-auto flex h-[58px] w-10 flex-col items-center justify-center text-center text-xs font-bold text-secondary-600 transition-all duration-200 ease-in-out group-hover:bg-primary-500 group-hover:text-white">
<div className="mx-auto flex h-[58px] w-10 flex-col items-center justify-center bg-secondary-50 text-center text-xs font-bold text-secondary-600 transition-all duration-200 ease-in-out group-hover:bg-primary-500 group-hover:text-white">
<span className="-rotate-90 uppercase duration-500 ease-in-out">
<p> {formatDateTime(date, "DD/MM")}</p>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default function MedicineAdministrationTable({
return (
<div className="overflow-x-auto">
<table className="w-full whitespace-nowrap">
<thead className="bg-secondary-50 sticky top-0 z-10 text-xs font-medium text-black">
<thead className="sticky top-0 z-10 bg-secondary-50 text-xs font-medium text-black">
<tr>
<th className="bg-secondary-50 sticky left-0 z-20 py-3 pl-4 text-left">
<th className="sticky left-0 z-20 bg-secondary-50 py-3 pl-4 text-left">
<div className="flex justify-between gap-2">
<span className="text-sm">{t("medicine")}</span>
<span className="hidden px-2 text-center text-xs leading-none lg:block">
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Medicine/ResponsiveMedicineTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export default function ResponsiveMedicineTable(props: {
<tr>
{props.theads.map((item) => {
return (
<th className="bg-secondary-50 whitespace-nowrap border-b border-secondary-200 px-6 py-3 text-left text-xs font-medium uppercase leading-4 tracking-wider text-secondary-800">
<th className="whitespace-nowrap border-b border-secondary-200 bg-secondary-50 px-6 py-3 text-left text-xs font-medium uppercase leading-4 tracking-wider text-secondary-800">
{item}
</th>
);
})}
{props.actions && (
<th className="bg-secondary-50 border-b border-secondary-200 px-6 py-3 text-left text-xs font-medium uppercase leading-4 tracking-wider text-secondary-800">
<th className="border-b border-secondary-200 bg-secondary-50 px-6 py-3 text-left text-xs font-medium uppercase leading-4 tracking-wider text-secondary-800">
{props.actionLabel || ""}
</th>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Users/UserAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ export const UserAdd = (props: UserProps) => {
options={
<Link
href="https://school.coronasafe.network/targets/12953"
className="bg-secondary-50 inline-block rounded border border-secondary-600 px-4 py-2 text-secondary-600 transition hover:bg-secondary-100"
className="inline-block rounded border border-secondary-600 bg-secondary-50 px-4 py-2 text-secondary-600 transition hover:bg-secondary-100"
target="_blank"
>
<CareIcon icon="l-question-circle" className="text-lg" /> &nbsp;Need
Expand Down
2 changes: 1 addition & 1 deletion src/Locale/en/Auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Locale/en/Bed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/Locale/en/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/Locale/en/Consultation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
40 changes: 20 additions & 20 deletions src/Locale/en/Diagnosis.json
Original file line number Diff line number Diff line change
@@ -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"
}
"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"
}
2 changes: 1 addition & 1 deletion src/Locale/en/Facility.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/Locale/en/Medicine.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
"PRESCRIPTION_FREQUENCY_Q4H": "4th hourly",
"PRESCRIPTION_FREQUENCY_QOD": "Alternate day",
"PRESCRIPTION_FREQUENCY_QWK": "Once a week"
}
}
2 changes: 1 addition & 1 deletion src/Locale/en/Users.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion src/Locale/kn/Auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "ಈಗಾಗಲೇ ಸದಸ್ಯರೇ?",
Expand Down
2 changes: 1 addition & 1 deletion src/Locale/ml/Auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "പുന: സജ്ജീകരണ ലിങ്ക് അയയ്‌ക്കുക",
Expand Down
2 changes: 1 addition & 1 deletion src/Locale/mr/Auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "रीसेट लिंक पाठवा",
Expand Down
Loading

0 comments on commit 5a47aed

Please sign in to comment.