zu fabricjs gewechselt, noch nicht funktionsfähig
This commit is contained in:
@@ -8,6 +8,12 @@ export type EventQrInviteLayout = {
|
||||
name: string;
|
||||
description: string;
|
||||
subtitle: string;
|
||||
badge_label?: string | null;
|
||||
instructions_heading?: string | null;
|
||||
link_heading?: string | null;
|
||||
cta_label?: string | null;
|
||||
cta_caption?: string | null;
|
||||
instructions?: string[];
|
||||
preview: {
|
||||
background: string | null;
|
||||
background_gradient: { angle: number; stops: string[] } | null;
|
||||
@@ -16,7 +22,7 @@ export type EventQrInviteLayout = {
|
||||
qr_size_px?: number | null;
|
||||
};
|
||||
formats: string[];
|
||||
download_urls: Record<string, string>;
|
||||
download_urls?: Record<string, string>;
|
||||
};
|
||||
|
||||
export type TenantEventType = {
|
||||
@@ -675,6 +681,12 @@ function normalizeQrInvite(raw: JsonValue): EventQrInvite {
|
||||
name: String(layout.name ?? ''),
|
||||
description: String(layout.description ?? ''),
|
||||
subtitle: String(layout.subtitle ?? ''),
|
||||
badge_label: layout.badge_label ?? null,
|
||||
instructions_heading: layout.instructions_heading ?? null,
|
||||
link_heading: layout.link_heading ?? null,
|
||||
cta_label: layout.cta_label ?? null,
|
||||
cta_caption: layout.cta_caption ?? null,
|
||||
instructions: Array.isArray(layout.instructions) ? (layout.instructions as string[]) : [],
|
||||
preview: {
|
||||
background: layout.preview?.background ?? null,
|
||||
background_gradient: layout.preview?.background_gradient ?? null,
|
||||
|
||||
Reference in New Issue
Block a user