mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-24 02:56:43 +02:00
style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
This commit is contained in:
parent
0241f5554c
commit
d36b321d9d
3952 changed files with 661498 additions and 739751 deletions
|
|
@ -3,14 +3,14 @@ import Constants from 'expo-constants';
|
|||
import { TFunction } from 'i18next';
|
||||
|
||||
interface EmailSupportOptions {
|
||||
userId?: string;
|
||||
t: TFunction;
|
||||
userId?: string;
|
||||
t: TFunction;
|
||||
}
|
||||
|
||||
export const openSupportEmail = async ({ userId, t }: EmailSupportOptions) => {
|
||||
const email = 'kontakt@memoro.ai';
|
||||
const subject = 'Support-Anfrage - Memoro App';
|
||||
const body = `Hallo Memoro Team,
|
||||
const email = 'kontakt@memoro.ai';
|
||||
const subject = 'Support-Anfrage - Memoro App';
|
||||
const body = `Hallo Memoro Team,
|
||||
|
||||
ich benötige Hilfe bei:
|
||||
|
||||
|
|
@ -20,23 +20,23 @@ Benutzer-ID: ${userId || 'Nicht verfügbar'}
|
|||
App-Version: ${Constants.expoConfig?.version || 'N/A'}
|
||||
Plattform: ${Platform.OS}`;
|
||||
|
||||
const emailUrl = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
|
||||
const emailUrl = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
|
||||
|
||||
try {
|
||||
const canOpen = await Linking.canOpenURL(emailUrl);
|
||||
if (canOpen) {
|
||||
await Linking.openURL(emailUrl);
|
||||
} else {
|
||||
Alert.alert(
|
||||
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
|
||||
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Could not open email app:', error);
|
||||
Alert.alert(
|
||||
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
|
||||
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
|
||||
);
|
||||
}
|
||||
};
|
||||
try {
|
||||
const canOpen = await Linking.canOpenURL(emailUrl);
|
||||
if (canOpen) {
|
||||
await Linking.openURL(emailUrl);
|
||||
} else {
|
||||
Alert.alert(
|
||||
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
|
||||
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Could not open email app:', error);
|
||||
Alert.alert(
|
||||
t('settings.email_error', 'E-Mail-App konnte nicht geöffnet werden'),
|
||||
t('settings.email_error_description', 'Bitte sende eine E-Mail an kontakt@memoro.ai')
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue