Skip to content

Commit

Permalink
tabs list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobjeevan committed Jan 28, 2025
1 parent d2b668d commit fa7b286
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/components/Patient/PatientDetailsTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface PatientProps {
patientData: Patient;
}

const commonTabs = [
export const patientTabs = [
{
route: "demography",
component: Demography,
Expand Down Expand Up @@ -48,12 +48,36 @@ const commonTabs = [
];

export const facilityPatientTabs = [
commonTabs[0],
{
route: "demography",
component: Demography,
},
{
route: "appointments",
component: Appointments,
},
...commonTabs.slice(1),
{
route: "encounters",
component: EncounterHistory,
},
{
route: "health-profile",
component: HealthProfileSummary,
},
{
route: "updates",
component: Updates,
},
{
route: "resource_requests",
component: ResourceRequests,
},
{
route: "users",
component: PatientUsers,
},
{
route: "files",
component: PatientFilesTab,
},
];

export const patientTabs = [...commonTabs];

0 comments on commit fa7b286

Please sign in to comment.