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)} ) })}