fix: resolve typescript and build errors across admin and guest apps
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-01-07 13:25:30 +01:00
parent 1ec4987b38
commit 22cb7ed7ce
43 changed files with 1057 additions and 30446 deletions

View File

@@ -341,7 +341,7 @@ export default function MobileEventLiveShowSettingsPage() {
{liveShowLink?.qr_code_data_url ? (
<XStack space="$2" alignItems="center" marginTop="$2" flexWrap="wrap">
<Pressable
onPress={() => downloadQr(liveShowLink.qr_code_data_url, 'live-show-qr.png')}
onPress={() => downloadQr(liveShowLink.qr_code_data_url!, 'live-show-qr.png')}
title={t('liveShowSettings.link.downloadQr', 'Download QR')}
aria-label={t('liveShowSettings.link.downloadQr', 'Download QR')}
style={{ borderRadius: 12, cursor: 'pointer' }}
@@ -578,14 +578,14 @@ function resolveName(name: TenantEvent['name']): string {
return 'Event';
}
function copyToClipboard(value: string, t: (key: string, fallback?: string) => string) {
function copyToClipboard(value: string, t: any) {
navigator.clipboard
.writeText(value)
.then(() => toast.success(t('liveShowSettings.link.copySuccess', 'Link copied')))
.catch(() => toast.error(t('liveShowSettings.link.copyFailed', 'Link could not be copied')));
}
async function shareLink(value: string, event: TenantEvent | null, t: (key: string, fallback?: string) => string) {
async function shareLink(value: string, event: TenantEvent | null, t: any) {
if (navigator.share) {
try {
await navigator.share({
@@ -713,7 +713,7 @@ function IconAction({
}}
>
<XStack alignItems="center" justifyContent="center">
{React.isValidElement(children) ? React.cloneElement(children, { color }) : children}
{React.isValidElement(children) ? React.cloneElement(children as any, { color }) : children}
</XStack>
</Pressable>
);