diff --git a/reports/src/ThemeContext.tsx b/reports/src/ThemeContext.tsx
index b48e7c9..df8c71d 100644
--- a/reports/src/ThemeContext.tsx
+++ b/reports/src/ThemeContext.tsx
@@ -65,7 +65,7 @@ export const CustomThemeProvider = ({
backgroundColor:
theme.palette.mode === "light"
? theme.palette.grey[100]
- : theme.palette.grey[900],
+ : theme.palette.grey[800],
},
};
};
diff --git a/reports/src/capability/CapabilityTable.tsx b/reports/src/capability/CapabilityTable.tsx
index 00c6f64..0b30743 100644
--- a/reports/src/capability/CapabilityTable.tsx
+++ b/reports/src/capability/CapabilityTable.tsx
@@ -1,15 +1,14 @@
import {
Box,
Breadcrumbs,
+ Link,
List,
ListItem,
- ListItemButton,
- ListItemText,
Paper,
Typography,
} from "@mui/material";
import { Capability } from "./capabilityTypes";
-import { useMatches, useNavigate } from "react-router-dom";
+import { Link as RouterLink, useMatches } from "react-router-dom";
import { ReactNode } from "react";
import { Report } from "./capabilityTypes";
import { CapabilityTableHeader } from "./CapabilityTableHeader";
@@ -46,7 +45,6 @@ export const CapabilityTable = ({
report,
participantMissing,
}: CapabilityTableProps) => {
- const navigate = useNavigate();
if (!capability) {
return Capability not found;
}
@@ -57,26 +55,22 @@ export const CapabilityTable = ({
- theme.palette.mode === "light"
- ? theme.palette.grey[100]
- : theme.palette.grey[900],
padding: 8,
paddingTop: 10,
}}
>
{participantMissing ? (
<>
-
+
{report.participants?.length ? "Participants" : "Participant"}
{report.participants?.map((p, i) => (
- navigate(`/${i}`)}>
-
-
+
+ {p}
+
))}
diff --git a/reports/src/capability/ParticipantSelector.tsx b/reports/src/capability/ParticipantSelector.tsx
index b07493c..18ee0e8 100644
--- a/reports/src/capability/ParticipantSelector.tsx
+++ b/reports/src/capability/ParticipantSelector.tsx
@@ -17,27 +17,27 @@ export const ParticipantSelector = ({
}) => {
const location = useLocation();
const navigate = useNavigate();
- const ussp = parseInt(location.pathname.split("/")[1]);
+ const participantId = parseInt(location.pathname.split("/")[1]);
- const handleUsspSelect = (event: SelectChangeEvent) => {
+ const handleParticipantSelect = (event: SelectChangeEvent) => {
const id = event.target.value;
navigate(`/${id}`);
};
- if (hideIfNoParticipant && Number.isNaN(ussp)) {
+ if (hideIfNoParticipant && Number.isNaN(participantId)) {
return null;
}
return (
- USSP
+ Participant