Skip to content

Commit

Permalink
Removed unnecessary code from tailwind.config and wrapped only the ne…
Browse files Browse the repository at this point in the history
…cessary components in PrintPreview in the ShowInvestigation file.
  • Loading branch information
Zeshanxviii committed Sep 3, 2024
1 parent ce0f782 commit 75770a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
30 changes: 15 additions & 15 deletions src/Components/Facility/Investigations/ShowInvestigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,19 @@ export default function ShowInvestigation(props: any) {
}

return (
<PrintPreview title={`Report of Investigation : ${patientData?.name}`}>
<div className="mx-auto max-w-7xl px-4">
<PageTitle
title={t("investigations")}
className="mx-3 md:mx-4 print:hidden"
breadcrumbs={false}
hideBack={true}
crumbsReplacements={{
[facilityId]: { name: patientData?.facility_object?.name },
[patientId]: { name: patientData?.name },
}}
backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}`}
/>
<>
<PageTitle
title={t("investigations")}
className="mx-3 md:mx-4 print:hidden"
breadcrumbs={false}
hideBack={true}
crumbsReplacements={{
[facilityId]: { name: patientData?.facility_object?.name },
[patientId]: { name: patientData?.name },
}}
backUrl={`/facility/${facilityId}/patient/${patientId}/consultation/${consultationId}`}
/>
<PrintPreview title={`Report of Investigation : ${patientData?.name}`}>
<InvestigationTable
title={`ID: ${sessionId}`}
data={state.initialValues}
Expand All @@ -166,7 +166,7 @@ export default function ShowInvestigation(props: any) {
handleUpdateCancel={handleUpdateCancel}
handleSave={handleSubmit}
/>
</div>
</PrintPreview>
</PrintPreview>
</>
);
}
1 change: 0 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module.exports = {
vs: "348px",
...defaultTheme.screens,
"3xl": "1920px",
print: { raw: "print" },
},
extend: {
fontFamily: {
Expand Down

0 comments on commit 75770a9

Please sign in to comment.