Skip to content

Commit

Permalink
make claim prompt more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Aug 13, 2023
1 parent f1eb399 commit 0432ca6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions assets/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
3 changes: 1 addition & 2 deletions assets/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
1 change: 1 addition & 0 deletions src/components/Toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ const styles = StyleSheet.create({
fontSize: 18,
fontWeight: '500',
color: '#FAFAFA',
textAlign: 'center'
},
})
2 changes: 1 addition & 1 deletion src/screens/Addressbook/Contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/screens/History/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(', '),
Expand Down

0 comments on commit 0432ca6

Please sign in to comment.