fix: resolve typescript and build errors across admin and guest apps
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user