From 7d75870d3bbe11500758d797641fcbfc41bb8732 Mon Sep 17 00:00:00 2001 From: eti Date: Fri, 3 Jul 2026 10:38:19 +0200 Subject: [PATCH] ogre: capitalize status badge open -> Open, closed -> Closed, etc Signed-off-by: eti --- ogre/src/components/shared/status-badge.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)} ); } -- 2.51.2