-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add patient privacy toggle in consultation feed tab
- Loading branch information
1 parent
a389f5d
commit 80a8917
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
27 changes: 17 additions & 10 deletions
27
src/Components/Facility/ConsultationDetails/ConsultationFeedTab.tsx
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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
import { lazy } from "react"; | ||
import { Feed } from "../Consultations/Feed"; | ||
import { ConsultationTabProps } from "./index"; | ||
|
||
const PageTitle = lazy(() => import("../../Common/PageTitle")); | ||
import PatientPrivacyToggle from "../../Patient/PatientPrivacyToggle"; | ||
const Page = lazy(() => import("../../Common/components/Page")); | ||
|
||
export const ConsultationFeedTab = (props: ConsultationTabProps) => { | ||
return ( | ||
<div> | ||
<PageTitle | ||
title="Camera Feed" | ||
breadcrumbs={false} | ||
hideBack={true} | ||
focusOnLoad={true} | ||
/> | ||
<Page | ||
title="Camera Feed" | ||
breadcrumbs={false} | ||
hideBack={true} | ||
focusOnLoad={true} | ||
className="px-0" | ||
options={ | ||
<PatientPrivacyToggle | ||
consultationId={props.consultationId} | ||
consultation={props.consultationData} | ||
// fetchPatientData={props.patientData} | ||
/> | ||
} | ||
> | ||
<Feed | ||
facilityId={props.facilityId} | ||
consultationId={props.consultationId} | ||
/> | ||
</div> | ||
</Page> | ||
); | ||
}; |