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