Skip to content

Commit 2a5a6ce

Browse files
committed
fix: gateway type label values (M/E) and add RBAC to gateway-funnel route (#85)
1 parent 6601b38 commit 2a5a6ce

File tree

1 file changed

+2
-2
lines changed
  • codebenders-dashboard/app/courses

1 file changed

+2
-2
lines changed

codebenders-dashboard/app/courses/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function PassRate({ value }: { value: number }) {
8888

8989
function GatewayTypeLabel({ type }: { type: string | null }) {
9090
if (!type) return <span className="text-muted-foreground text-xs"></span>
91-
if (type === "math") return <span className="text-xs font-medium text-blue-700">Math Gateway</span>
92-
if (type === "english") return <span className="text-xs font-medium text-purple-700">English Gateway</span>
91+
if (type === "M") return <span className="text-xs font-medium text-blue-700">Math Gateway</span>
92+
if (type === "E") return <span className="text-xs font-medium text-purple-700">English Gateway</span>
9393
return <span className="text-xs text-muted-foreground">{type}</span>
9494
}
9595

0 commit comments

Comments
 (0)