28 | {/* Sub-tab Navigation */}
29 |
30 |
40 |
50 |
60 |
61 |
62 | {/* Sub-tab Content */}
63 | {activeSubTab === "criteria" &&
}
64 | {activeSubTab === "remarks" &&
}
65 | {activeSubTab === "score" &&
}
66 |
67 | );
68 | }
69 |
--------------------------------------------------------------------------------
/src/components/dashboard/RolesTab.tsx:
--------------------------------------------------------------------------------
1 | import JudgePanel from "~/components/organiserDashboard/judgePanel";
2 | import VolunteerPanel from "~/components/organiserDashboard/volunteerPanel";
3 | import { type User } from "@prisma/client";
4 | import { Card, CardContent, CardHeader, CardTitle } from "~/components/ui/card";
5 | import { Tabs, TabsContent, TabsList, TabsTrigger } from "~/components/ui/tabs";
6 | import { ResultsVisibilityToggle } from "~/components/ResultsVisibilityToggle";
7 |
8 | interface RolesTabProps {
9 | users: User[] | undefined;
10 | }
11 |
12 | export default function RolesTab({ users }: RolesTabProps) {
13 | return (
14 |