Skip to content

Commit

Permalink
(fix) update parameters to useReactToPrint across all usage
Browse files Browse the repository at this point in the history
  • Loading branch information
WodPachua committed Aug 29, 2024
1 parent 824d180 commit 8e27da5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const PrintIdentifierSticker: React.FC<PrintIdentifierStickerProps> = ({ closeMo
onAfterPrint: handleAfterPrint,
onBeforeGetContent: handleBeforeGetContent,
onPrintError: handlePrintError,
});
} as any);

return (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function PrintModal({ patientUuid, closeDialog }) {

const handlePrint = useReactToPrint({
content: () => printContainerRef.current,
});
} as any);

const patient = usePatient(patientUuid);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const MedicationsDetailsTable: React.FC<ActiveMedicationsProps> = ({
onBeforeGetContentResolve.current = null;
setIsPrinting(false);
},
});
} as any);

return (
<div className={styles.widgetCard}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const OrderDetailsTable: React.FC<OrderDetailsProps> = ({ patientUuid, showAddBu
onBeforeGetContentResolve.current = null;
setIsPrinting(false);
},
});
} as any);

const orderTypesToDisplay = useMemo(
() => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const VitalsOverview: React.FC<VitalsOverviewProps> = ({ patientUuid, pageSize,
onBeforeGetContentResolve.current = null;
setIsPrinting(false);
},
});
} as any);

return (
<>
Expand Down

0 comments on commit 8e27da5

Please sign in to comment.