Tip-unlock: add tooltip and related strings

This commit is contained in:
infinite-persistence 2021-03-25 15:55:33 +08:00 committed by jessopb
parent 5d4828514c
commit e70eb3b5bc
3 changed files with 6 additions and 1 deletions

View file

@ -964,6 +964,9 @@
"Successfully abandoned your support.": "Successfully abandoned your support.",
"Transaction failed": "Transaction failed",
"Insufficient credits": "Insufficient credits",
"Error abandoning your claim/support": "Error abandoning your claim/support",
"Error unlocking your tip": "Error unlocking your tip",
"You deposited %lbc% as a support!": "You deposited %lbc% as a support!",
"You deposited %amount% LBRY Credits as a support!": "You deposited %amount% LBRY Credits as a support!",
"You sent %amount% LBRY Credits as a tip, Mahalo!": "You sent %amount% LBRY Credits as a tip, Mahalo!",
"You sent %amount% LBRY Credits": "You sent %amount% LBRY Credits",

View file

@ -63,6 +63,7 @@ function FileDescription(props: Props) {
button="link"
className="expandable__button"
icon={ICONS.UNLOCK}
aria-label={__('Unlock tips')}
onClick={() => {
doOpenModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
}}

View file

@ -13,7 +13,7 @@ type Props = {
claim: StreamClaim,
fileInfo: FileListItem,
metadata: StreamMetadata,
openFolder: string => void,
openFolder: (string) => void,
contentType: string,
user: ?any,
pendingAmount: string,
@ -62,6 +62,7 @@ class FileValues extends PureComponent<Props> {
className="expandable__button"
icon={ICONS.UNLOCK}
label={<CreditAmount amount={Number(supportsAmount)} precision={2} />}
aria-label={__('Unlock tips')}
onClick={() => {
openModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
}}