forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'coronasafe:develop' into issues/ohcnetwork#8194/Remove-…
…badge-facility-specific-discharge-patient-list-page
- Loading branch information
Showing
13 changed files
with
870 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ReactNode } from "react"; | ||
import ButtonV2 from "../../Components/Common/components/ButtonV2"; | ||
import CareIcon from "../icons/CareIcon"; | ||
import { classNames } from "../../Utils/utils"; | ||
import Page from "../../Components/Common/components/Page"; | ||
|
||
type Props = { | ||
children: ReactNode; | ||
disabled?: boolean; | ||
className?: string; | ||
title: string; | ||
}; | ||
|
||
export default function PrintPreview(props: Props) { | ||
return ( | ||
<Page title={props.title}> | ||
<div className="mx-auto my-8 w-[50rem]"> | ||
<div className="top-0 z-20 flex justify-end gap-2 bg-secondary-100 px-2 py-4 xl:absolute xl:right-6 xl:top-8"> | ||
<ButtonV2 disabled={props.disabled} onClick={() => window.print()}> | ||
<CareIcon icon="l-print" className="text-lg" /> | ||
</ButtonV2> | ||
</div> | ||
|
||
<div className="bg-white p-10 text-sm shadow-2xl transition-all duration-200 ease-in-out"> | ||
<div | ||
id="section-to-print" | ||
className={classNames("w-full", props.className)} | ||
> | ||
{props.children} | ||
</div> | ||
</div> | ||
</div> | ||
</Page> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.