,
- "/patient/:id": ({ id }) =>
,
+ "/patient/:id": ({ id }) =>
,
"/patient/:id/investigation_reports": ({ id }) => (
),
@@ -19,8 +20,15 @@ const PatientRoutes: AppRoutes = {
),
"/facility/:facilityId/patient/:id": ({ facilityId, id }) => (
-
+
),
+ ...patientTabs.reduce((acc: AppRoutes, tab) => {
+ acc["/facility/:facilityId/patient/:id/" + tab.route] = ({
+ facilityId,
+ id,
+ }) =>
;
+ return acc;
+ }, {}),
"/facility/:facilityId/patient/:id/insurance": ({ facilityId, id }) => (
),
diff --git a/src/common/constants.tsx b/src/common/constants.tsx
index d46c42969ee..9d0be731565 100644
--- a/src/common/constants.tsx
+++ b/src/common/constants.tsx
@@ -1717,3 +1717,5 @@ export const HEADER_CONTENT_TYPES = {
svg: "image/svg+xml",
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
} as const;
+
+export const ADMIN_USER_TYPES = ["DistrictAdmin", "StateAdmin"] as const;
diff --git a/src/components/Common/Breadcrumbs.tsx b/src/components/Common/Breadcrumbs.tsx
index 410df597a5d..0435d7675d9 100644
--- a/src/components/Common/Breadcrumbs.tsx
+++ b/src/components/Common/Breadcrumbs.tsx
@@ -72,12 +72,12 @@ export default function Breadcrumbs({
{isLastItem ? (
-
{crumb.name}
+
{crumb.name}
) : (
@@ -91,32 +91,26 @@ export default function Breadcrumbs({