fix: resolve typescript and build errors across admin and guest apps

This commit is contained in:
Codex Agent
2026-01-07 13:25:30 +01:00
parent 1ec4987b38
commit 8e1031fff0
42 changed files with 1056 additions and 30446 deletions

View File

@@ -453,7 +453,7 @@ export default function MobileEventPhotosPage() {
toast.error(t('mobilePhotos.loadFailed', 'Fotos konnten nicht geladen werden.'));
}
if (active) {
setLightboxWithUrl(null, { replace: true });
setLightboxWithUrl(null);
}
} finally {
if (active) {
@@ -616,7 +616,7 @@ export default function MobileEventPhotosPage() {
function startAddonCheckout(scopeOrKey: 'photos' | 'gallery' | 'guests' | string) {
if (!slug) return;
const { scope, addonKey } = resolveScopeAndAddonKey(scopeOrKey);
setConsentTarget({ scope, addonKey });
setConsentTarget({ scope: scope as any, addonKey });
setConsentOpen(true);
}
@@ -635,7 +635,7 @@ export default function MobileEventPhotosPage() {
cancel_url: currentUrl,
accepted_terms: consents.acceptedTerms,
accepted_waiver: consents.acceptedWaiver,
});
} as any);
if (checkout.checkout_url) {
window.location.href = checkout.checkout_url;
} else {
@@ -710,7 +710,7 @@ export default function MobileEventPhotosPage() {
<XStack space="$2">
<CTAButton
label={selectionMode ? t('common.done', 'Done') : t('common.select', 'Select')}
tone={selectionMode ? 'solid' : 'ghost'}
tone={selectionMode ? 'primary' : 'ghost'}
fullWidth={false}
onPress={() => {
if (selectionMode) {
@@ -768,7 +768,7 @@ export default function MobileEventPhotosPage() {
addons={catalogAddons}
onCheckout={startAddonCheckout}
busyScope={busyScope}
translate={translateLimits(t)}
translate={translateLimits(t as any)}
textColor={text}
borderColor={border}
/>
@@ -1343,7 +1343,7 @@ function PhotoQuickActions({ photo, disabled = false, muted, surface, onAction }
key={action.key}
disabled={disabled}
aria-label={action.label}
onPress={(event) => {
onPress={(event: any) => {
event.stopPropagation();
if (!disabled) {
onAction(action.key);