From f9fc23ca677e925e594c16b1a78056d2775bfae4 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Thu, 30 Jul 2026 15:31:31 -0700 Subject: [PATCH] ogre: pluralize metrics --- ogre/src/components/shared/metrics.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ogre/src/components/shared/metrics.tsx b/ogre/src/components/shared/metrics.tsx index ba66dbe3..66f2ad59 100644 --- a/ogre/src/components/shared/metrics.tsx +++ b/ogre/src/components/shared/metrics.tsx @@ -13,13 +13,15 @@ interface MetricsProps { issues: number; } +const pluralize = (label: string, n: number) => (`${label}${n === 1 ? "" : "s"}`); + // Display stars, pulls, issues with Lucide icons export function Metrics({ stars, pulls, issues }: MetricsProps) { return ( - - - + + + ); } -- 2.51.2