From 0432ca62712596e3a795146905a8eac467a984a7 Mon Sep 17 00:00:00 2001 From: First-Terraner Date: Sun, 13 Aug 2023 18:31:59 +0200 Subject: [PATCH] make claim prompt more readable --- assets/translations/de.json | 3 +-- assets/translations/en.json | 3 +-- assets/translations/fr.json | 3 +-- src/components/Toaster.tsx | 1 + src/screens/Addressbook/Contact/index.tsx | 2 +- src/screens/History/Details.tsx | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/assets/translations/de.json b/assets/translations/de.json index b113becc..cfaf1ffb 100644 --- a/assets/translations/de.json +++ b/assets/translations/de.json @@ -50,9 +50,8 @@ "cashuRandD": "Cashu Telegram", "change": "Rückgeld", "checkPayment": "Zahlung prüfen", - "claimBackSuccess": "{{amount}} Satoshi erfolgreich erhalten!", "claimed": "beansprucht", - "claimSuccess": "{{amount}} Satoshi erhalten von {{mintUrl}}! Memo: {{memo}}", + "claimSuccess": "{{amount}} Satoshi erhalten:\n{{mintUrl}}\nMemo: {{memo}}", "claimToken": "Token in Anspruch nehmen", "clear": "Löschen", "clipboardInvalid": "Deine Zwischenablage beinhaltet einen invaliden Cashu Token", diff --git a/assets/translations/en.json b/assets/translations/en.json index 52aedb95..7ae31f09 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -50,9 +50,8 @@ "cashuRandD": "Cashu Telegram", "change": "Change", "checkPayment": "Check payment", - "claimBackSuccess": "Claimed {{amount}} Satoshi from {{mintUrl}}! Memo: {{memo}}", "claimed": "claimed", - "claimSuccess": "Claimed {{amount}} Satoshi from {{mintUrl}}! Memo: {{memo}}", + "claimSuccess": "Claimed {{amount}} Satoshi:\n{{mintUrl}}\nMemo: {{memo}}", "claimToken": "Claim token", "clear": "Clear", "clipboardInvalid": "Your clipboard contains an invalid Cashu token!", diff --git a/assets/translations/fr.json b/assets/translations/fr.json index 40a91307..4a461448 100644 --- a/assets/translations/fr.json +++ b/assets/translations/fr.json @@ -50,9 +50,8 @@ "cashuRandD": "Cashu Telegram", "change": "Changer", "checkPayment": "Vérifier le paiement", - "claimBackSuccess": "{{amount}} Satoshi récupérés avec succès!", "claimed": "récupéré", - "claimSuccess": "{{amount}} Satoshi récupérés depuis {{mintUrl}}! Note: {{memo}}", + "claimSuccess": "{{amount}} Satoshi récupérés:\n{{mintUrl}}\nNote: {{memo}}", "claimToken": "Obtenir le token", "clear": "Effacer", "clipboardInvalid": "Le presse-papiers contient un Cashu token invalide!", diff --git a/src/components/Toaster.tsx b/src/components/Toaster.tsx index 4e708e83..c5b9cb46 100644 --- a/src/components/Toaster.tsx +++ b/src/components/Toaster.tsx @@ -52,5 +52,6 @@ const styles = StyleSheet.create({ fontSize: 18, fontWeight: '500', color: '#FAFAFA', + textAlign: 'center' }, }) \ No newline at end of file diff --git a/src/screens/Addressbook/Contact/index.tsx b/src/screens/Addressbook/Contact/index.tsx index 65d93b1c..a3475ac1 100644 --- a/src/screens/Addressbook/Contact/index.tsx +++ b/src/screens/Addressbook/Contact/index.tsx @@ -35,7 +35,7 @@ export default function ContactPage({ navigation, route }: IContactPageProps) { const handlePress = (url: string) => { if (url === 'lightning://') { // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - openPromptAutoClose({ msg: `⚠️ ${t('zapSoon', { ns: NS.common })} ⚡👀` }) + openPromptAutoClose({ msg: `⚠️\n\n${t('zapSoon', { ns: NS.common })}\n\n⚡👀` }) return } setVisible(true) diff --git a/src/screens/History/Details.tsx b/src/screens/History/Details.tsx index 3424f538..afa4158f 100644 --- a/src/screens/History/Details.tsx +++ b/src/screens/History/Details.tsx @@ -95,7 +95,7 @@ export default function DetailsPage({ navigation, route }: THistoryEntryPageProp stopLoading() openPromptAutoClose({ msg: t( - 'claimBackSuccess', + 'claimSuccess', { amount: entry.amount < 0 ? Math.abs(entry.amount) : entry.amount, mintUrl: entry.mints.map(m => formatMintUrl(m)).join(', '),