feat: update slot types and enhance TypeBadge display

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-08-24 20:55:29 +02:00
1 parent 5f8ded56f6
commit fad978e9f4
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. */