diff --git a/src/CAREUI/misc/PrintPreview.tsx b/src/CAREUI/misc/PrintPreview.tsx index 6ad15d72b48..78425527744 100644 --- a/src/CAREUI/misc/PrintPreview.tsx +++ b/src/CAREUI/misc/PrintPreview.tsx @@ -1,38 +1,36 @@ import { ReactNode } from "react"; -import useAppHistory from "../../Common/hooks/useAppHistory"; 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) { - const { goBack } = useAppHistory(); - return ( -
-
- window.print()}> - - Print - - goBack()}> - Close - -
+ +
+
+ window.print()}> + + Print + +
-
-
- {props.children} +
+
+ {props.children} +
-
+ ); } diff --git a/src/Components/Medicine/PrintPreview.tsx b/src/Components/Medicine/PrintPreview.tsx index ee4b541f0b3..07e1a406c27 100644 --- a/src/Components/Medicine/PrintPreview.tsx +++ b/src/Components/Medicine/PrintPreview.tsx @@ -26,6 +26,9 @@ export default function PrescriptionsPrintPreview() { return (