From f1b78197c7af5106f17df3bc04dc508106937cc4 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 30 Jan 2026 18:51:43 -0800 Subject: [PATCH] class it up --- src/client/components/Nav.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/components/Nav.tsx b/src/client/components/Nav.tsx index fc61933..34d8472 100644 --- a/src/client/components/Nav.tsx +++ b/src/client/components/Nav.tsx @@ -10,6 +10,7 @@ export function Nav({ app, render }: { app: App; render: () => void }) { // Find all tools const tools = apps.filter(a => a.tool) + const titlecase = (s: string) => s.split(' ').map(part => part[0]?.toUpperCase() + part.slice(1)) return ( @@ -24,7 +25,7 @@ export function Nav({ app, render }: { app: App; render: () => void }) { active={selectedTab === tool.name ? true : undefined} onClick={() => handleTabClick(tool.name)} > - {toolName} + {titlecase(toolName)} ) })}