fix(events): show customer phone in event details view (#331)

The phone field added in #322 was wired into the edit form but never
rendered in the read-only event-info panel, so admins could only see the
number while editing. Add a phone row gated on event_phone_field_enabled
(same toggle the form uses), and tighten the Event type so customer_phone
is no longer accessed via `(event as any)`.
This commit is contained in:
Paul Nothaft
2026-04-28 15:05:22 +02:00
parent ca8acacd43
commit 4c73d228ed
2 changed files with 15 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ export interface Event {
event_date: string | null;
customer_name?: string;
customer_email: string;
customer_phone?: string | null;
admin_email: string;
welcome_message?: string;
color_theme?: string;