Tweak tip/boost toast message
- Split the friendly text (non-essential) to `subMessage`. - Put a link to the wallet history for all these tipping toasts. - Don't say "tip" for the Wallet Send action (Issue_1605) - Make the link font-size smaller than the main text.
This commit is contained in:
parent
f69097b488
commit
d89e04942b
4 changed files with 17 additions and 13 deletions
|
@ -1072,7 +1072,9 @@
|
||||||
"Boost": "Boost",
|
"Boost": "Boost",
|
||||||
"Boost transaction successful.": "Boost transaction successful.",
|
"Boost transaction successful.": "Boost transaction successful.",
|
||||||
"Boost transaction failed.": "Boost transaction failed.",
|
"Boost transaction failed.": "Boost transaction failed.",
|
||||||
"Tip successfully sent. I'm sure they appreciate it!": "Tip successfully sent. I'm sure they appreciate it!",
|
"Credits successfully sent.": "Credits successfully sent.",
|
||||||
|
"Tip successfully sent.": "Tip successfully sent.",
|
||||||
|
"I'm sure they appreciate it!": "I'm sure they appreciate it!",
|
||||||
"Tip transaction failed.": "Tip transaction failed.",
|
"Tip transaction failed.": "Tip transaction failed.",
|
||||||
"Add a Card": "Add a Card",
|
"Add a Card": "Add a Card",
|
||||||
"To Tip Creators": "To Tip Creators",
|
"To Tip Creators": "To Tip Creators",
|
||||||
|
|
|
@ -311,8 +311,10 @@ export function CommentCreate(props: Props) {
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
||||||
doToast({
|
doToast({
|
||||||
message: __("Tip successfully sent. I'm sure they appreciate it!"),
|
message: __('Tip successfully sent.'),
|
||||||
subMessage: `${tipAmount} LBC ⇒ ${tipChannelName}`, // force show decimal places
|
subMessage: __("I'm sure they appreciate it!"),
|
||||||
|
linkText: `${tipAmount} LBC ⇒ ${tipChannelName}`, // force show decimal places
|
||||||
|
linkTarget: '/wallet',
|
||||||
});
|
});
|
||||||
|
|
||||||
setSuccessTip({ txid, tipAmount });
|
setSuccessTip({ txid, tipAmount });
|
||||||
|
|
|
@ -293,9 +293,8 @@ export function doSendDraftTransaction(address, amount) {
|
||||||
});
|
});
|
||||||
dispatch(
|
dispatch(
|
||||||
doToast({
|
doToast({
|
||||||
message: __("Tip successfully sent. I'm sure they appreciate it!"),
|
message: __('Credits successfully sent.'),
|
||||||
subMessage: `${amount} LBC`,
|
linkText: `${amount} LBC`,
|
||||||
linkText: __('History'),
|
|
||||||
linkTarget: '/wallet',
|
linkTarget: '/wallet',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -371,11 +370,9 @@ export function doSendTip(params, isSupport, successCallback, errorCallback, sho
|
||||||
if (shouldNotify) {
|
if (shouldNotify) {
|
||||||
dispatch(
|
dispatch(
|
||||||
doToast({
|
doToast({
|
||||||
message: shouldSupport
|
message: shouldSupport ? __('Boost transaction successful.') : __('Tip successfully sent.'),
|
||||||
? __('Boost transaction successful.')
|
subMessage: __("I'm sure they appreciate it!"),
|
||||||
: __("Tip successfully sent. I'm sure they appreciate it!"),
|
linkText: `${params.amount} LBC`,
|
||||||
subMessage: `${params.amount} LBC`,
|
|
||||||
linkText: __('History'),
|
|
||||||
linkTarget: '/wallet',
|
linkTarget: '/wallet',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -767,8 +764,10 @@ export const doSendCashTip = (
|
||||||
|
|
||||||
dispatch(
|
dispatch(
|
||||||
doToast({
|
doToast({
|
||||||
message: __("Tip successfully sent. I'm sure they appreciate it!"),
|
message: __('Tip successfully sent.'),
|
||||||
subMessage: `${fiatSymbol}${tipParams.tipAmount} ⇒ ${tipParams.tipChannelName}`,
|
subMessage: __("I'm sure they appreciate it!"),
|
||||||
|
linkText: `${fiatSymbol}${tipParams.tipAmount} ⇒ ${tipParams.tipChannelName}`,
|
||||||
|
linkTarget: '/wallet',
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
min-width: min-content;
|
min-width: min-content;
|
||||||
color: var(--color-white);
|
color: var(--color-white);
|
||||||
|
font-size: var(--font-small);
|
||||||
|
|
||||||
span:hover {
|
span:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
Loading…
Reference in a new issue