diff --git a/ogre/src/components/shared/status-badge.tsx b/ogre/src/components/shared/status-badge.tsx index 3f96854e..3ee8f932 100644 --- a/ogre/src/components/shared/status-badge.tsx +++ b/ogre/src/components/shared/status-badge.tsx @@ -8,6 +8,10 @@ import { } from "../../icons/lucide"; import { COLORS, TYPOGRAPHY } from "./constants"; +function capitalize(text: string) { + return text.charAt(0).toUpperCase() + text.slice(1); +} + const STATUS_CONFIG = { open: { Icon: CircleDot, @@ -48,7 +52,7 @@ export function StatusBadge({ status }: StatusBadgeProps) { backgroundColor: config.bg, }}> - {status} + {capitalize(status)} ); } @@ -67,7 +71,7 @@ export function IssueStatusBadge({ status }: { status: "open" | "closed" }) { backgroundColor: config.bg, }}> - {status} + {capitalize(status)} ); }