diff --git a/src/features/account/components/header.tsx b/src/features/account/components/header.tsx index a26d1fc67..d76cfecef 100644 --- a/src/features/account/components/header.tsx +++ b/src/features/account/components/header.tsx @@ -100,7 +100,7 @@ const messages = defineMessages({ profileExternal: { id: 'account.profile_external', defaultMessage: 'View profile on {domain}' }, header: { id: 'account.header.alt', defaultMessage: 'Profile header' }, subscribeFeed: { id: 'account.rss_feed', defaultMessage: 'Subscribe to RSS feed' }, - method: { id: 'payment_method.send_to', defaultMessage: 'Send {method} to {target}' }, + method: { id: 'payment_method.send_to', defaultMessage: 'Send sats via {method} to {target}' }, }); interface IHeader { diff --git a/src/features/ui/components/modals/zaps-modal.tsx b/src/features/ui/components/modals/zaps-modal.tsx index 083602452..a6aaf23ea 100644 --- a/src/features/ui/components/modals/zaps-modal.tsx +++ b/src/features/ui/components/modals/zaps-modal.tsx @@ -89,7 +89,7 @@ const ZapsModal: React.FC = ({ onClose, statusId }) => { return (
- {account.type === 'zap' ? shortNumberFormat(account.amount / 1000) : shortNumberFormat(account.amount)} + {account.type === 'lightning' ? shortNumberFormat(account.amount / 1000) : shortNumberFormat(account.amount)}
diff --git a/src/features/wallet/components/create-wallet.tsx b/src/features/wallet/components/create-wallet.tsx index af586c031..759cf2969 100644 --- a/src/features/wallet/components/create-wallet.tsx +++ b/src/features/wallet/components/create-wallet.tsx @@ -47,54 +47,91 @@ const CreateWallet = () => { } return ( - + - {!formActive - ? - ( - <> - - {intl.formatMessage(messages.title)} + {!formActive ? ( + <> +
+ +
+ + {intl.formatMessage(messages.title)} + + + + {intl.formatMessage(messages.question)} - - - {intl.formatMessage(messages.question)} - - + + - - - -
- ) - } + + + +
+ )}
); diff --git a/src/features/wallet/index.tsx b/src/features/wallet/index.tsx index 5648c5c61..cdf1c3e96 100644 --- a/src/features/wallet/index.tsx +++ b/src/features/wallet/index.tsx @@ -26,7 +26,7 @@ const messages = defineMessages({ }); const paymentMethods = { - zap: 'zap', + lightning: 'lightning', cashu: 'cashu', }; @@ -45,13 +45,15 @@ const Wallet = () => { return ( <> {isLoading ? - - + +
+ +
: ( - + @@ -59,7 +61,11 @@ const Wallet = () => { {walletData ? ( <> - + @@ -70,8 +76,13 @@ const Wallet = () => { - {hasTransactions &&
-
} @@ -91,7 +102,7 @@ const Wallet = () => { items={paymentMethods} defaultValue={method} onChange={(event: React.ChangeEvent) => { - changeMethod((event.target.value as 'cashu' | 'zap')); + changeMethod((event.target.value as 'cashu' | 'lightning')); }} /> diff --git a/src/features/zap/components/pay-request-form.tsx b/src/features/zap/components/pay-request-form.tsx index f95d813a0..66d47faaa 100644 --- a/src/features/zap/components/pay-request-form.tsx +++ b/src/features/zap/components/pay-request-form.tsx @@ -128,8 +128,8 @@ const PayRequestForm = ({ account, status, onClose }: IPayRequestForm) => { 1 ? `${paymentMethod}s` : paymentMethod }} + defaultMessage='Send sats via {method} to {target}' + values={{ target: emojifyText(account.display_name, account.emojis), method: paymentMethod }} /> diff --git a/src/features/zap/usePaymentMethod.ts b/src/features/zap/usePaymentMethod.ts index e0f8df9aa..f82afdfa3 100644 --- a/src/features/zap/usePaymentMethod.ts +++ b/src/features/zap/usePaymentMethod.ts @@ -4,14 +4,14 @@ import { create } from 'zustand'; enableMapSet(); interface IPaymentMethod { - method: 'cashu' | 'zap'; - changeMethod: (method: 'cashu' | 'zap') => void; + method: 'cashu' | 'lightning'; + changeMethod: (method: 'cashu' | 'lightning') => void; } export const usePaymentMethod = create( (set) => ({ - method: localStorage.getItem('soapbox:payment_method') as 'cashu' | 'zap' || 'cashu', - changeMethod: (method: 'cashu' | 'zap') => { + method: localStorage.getItem('soapbox:payment_method') as 'cashu' | 'lightning' || 'cashu', + changeMethod: (method: 'cashu' | 'lightning') => { localStorage.setItem('soapbox:payment_method', method); set({ method }); }, diff --git a/src/locales/ar.json b/src/locales/ar.json index 67f8240c8..71deb73a9 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -1523,5 +1523,5 @@ "payment_method.comment_input.placeholder": "تعليق إختياري", "zap.open_wallet": "فتح المحفظة", "zap.send_to": "أرسل zaps إلى {target}", - "payment_method.send_to": "أرسل {method} إلى {target}" + "payment_method.send_to": "أرسل sats عبر {method} إلى {target}" } diff --git a/src/locales/en.json b/src/locales/en.json index 008f08701..86ee426c1 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1297,7 +1297,7 @@ "patron.title": "Funding Goal", "payment_method.button.text.raw": "Zap {amount} sats", "payment_method.comment_input.placeholder": "Optional comment", - "payment_method.send_to": "Send {method} to {target}", + "payment_method.send_to": "Send sats via {method} to {target}", "payment_method.split_message.deducted": "{amountDeducted} sats will deducted*", "pinned_accounts.title": "{name}’s choices", "pinned_statuses.none": "No pins to show.", diff --git a/src/locales/es.json b/src/locales/es.json index 6df0403ed..4189f115b 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1630,5 +1630,5 @@ "payment_method.comment_input.placeholder": "Comentario opcional", "zap.open_wallet": "Abrir Wallet", "zap.send_to": "Enviar zaps a {target}", - "payment_method.send_to": "Enviar {method} a {target}" + "payment_method.send_to": "Enviar sats a través de {method} a {target}" } diff --git a/src/locales/ga.json b/src/locales/ga.json index a7de77b12..d33088d97 100644 --- a/src/locales/ga.json +++ b/src/locales/ga.json @@ -1686,7 +1686,7 @@ "zap.next": "Ar Aghaidh", "zap.open_wallet": "Oscail Sparán", "zap.send_to": "Seol zaps chuig {target}", - "payment_method.send_to": "Seol {method} chuig {target}", + "payment_method.send_to": "Seol sats trí {method} chuig {target}", "payment_method.split_message.deducted": "Asbhainfear {amountDeducted} sats*", "zap.split_message.receiver": "Gheobhaidh {receiver} {amountReceiver} sats*", "zap_split.question": "Cén fáth a bhfuil mé ag íoc seo?", diff --git a/src/locales/pt-BR.json b/src/locales/pt-BR.json index 1657c2da3..7d8c49339 100644 --- a/src/locales/pt-BR.json +++ b/src/locales/pt-BR.json @@ -1639,7 +1639,7 @@ "payment_method.comment_input.placeholder": "Comentário opcional", "zap.open_wallet": "Abrir Carteira", "zap.send_to": "Enviar zaps para {target}", - "payment_method.send_to": "Enviar {method} para {target}", + "payment_method.send_to": "Enviar sats via {method} para {target}", "payment_method.split_message.deducted": "{amountDeducted} sats serão deduzidos*", "zap.split_message.receiver": "{receiver} receberá {amountReceiver} sats*", "zap_split.question": "Por que estou pagando isso?", diff --git a/src/locales/pt.json b/src/locales/pt.json index 45a1850ff..d85f3855f 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -1618,6 +1618,6 @@ "who_to_follow.title": "Quem Seguir", "payment_method.comment_input.placeholder": "Comentário opcional", "zap.open_wallet": "Abrir Carteira", - "payment_method.send_to": "Enviar {method} para {target}", + "payment_method.send_to": "Enviar sats através de {method} para {target}", "zap.send_to": "Enviar zaps para {target}" } diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 40739cd3e..c8f0dfb3f 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -1623,6 +1623,6 @@ "payment_method.button.text.raw": "打闪 {amount} 聪", "payment_method.comment_input.placeholder": "可选评论", "zap.open_wallet": "打开钱包", - "payment_method.send_to": "发送打闪给 {target}", + "payment_method.send_to": "通过 {method} 发送 sats 到 {target}", "zap.send_to": "发送打闪给 {target}" }