feat: update slot types and enhance TypeBadge display

This commit is contained in:
Lago committed 2026-08-24 20:55:29 +02:00
1 parent f7aea663d8
commit 2db22984fc
4 files changed
+22 -16

No files matched your search

+3 -1
View File
@@ -81,7 +81,9 @@ export function QrImage({ value, size = 180 }: { value: string; size?: number })
/** Small colored badge for a registration / sponsor type. */
export function TypeBadge({ type }: { type: string }) {
return <span className={`pill ${type}`}>{type.replace(/_/g, ' ')}</span>;
// "service_session" -> "Service Session" (capitalize each word).
const label = type.replace(/_/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase());
return <span className={`pill ${type}`}>{label}</span>;
}
/** A small on/off toggle switch. */