Tip-unlock: add tooltip and related strings
This commit is contained in:
parent
5d4828514c
commit
e70eb3b5bc
3 changed files with 6 additions and 1 deletions
|
@ -964,6 +964,9 @@
|
||||||
"Successfully abandoned your support.": "Successfully abandoned your support.",
|
"Successfully abandoned your support.": "Successfully abandoned your support.",
|
||||||
"Transaction failed": "Transaction failed",
|
"Transaction failed": "Transaction failed",
|
||||||
"Insufficient credits": "Insufficient credits",
|
"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 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 as a tip, Mahalo!": "You sent %amount% LBRY Credits as a tip, Mahalo!",
|
||||||
"You sent %amount% LBRY Credits": "You sent %amount% LBRY Credits",
|
"You sent %amount% LBRY Credits": "You sent %amount% LBRY Credits",
|
||||||
|
|
|
@ -63,6 +63,7 @@ function FileDescription(props: Props) {
|
||||||
button="link"
|
button="link"
|
||||||
className="expandable__button"
|
className="expandable__button"
|
||||||
icon={ICONS.UNLOCK}
|
icon={ICONS.UNLOCK}
|
||||||
|
aria-label={__('Unlock tips')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
doOpenModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
|
doOpenModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -13,7 +13,7 @@ type Props = {
|
||||||
claim: StreamClaim,
|
claim: StreamClaim,
|
||||||
fileInfo: FileListItem,
|
fileInfo: FileListItem,
|
||||||
metadata: StreamMetadata,
|
metadata: StreamMetadata,
|
||||||
openFolder: string => void,
|
openFolder: (string) => void,
|
||||||
contentType: string,
|
contentType: string,
|
||||||
user: ?any,
|
user: ?any,
|
||||||
pendingAmount: string,
|
pendingAmount: string,
|
||||||
|
@ -62,6 +62,7 @@ class FileValues extends PureComponent<Props> {
|
||||||
className="expandable__button"
|
className="expandable__button"
|
||||||
icon={ICONS.UNLOCK}
|
icon={ICONS.UNLOCK}
|
||||||
label={<CreditAmount amount={Number(supportsAmount)} precision={2} />}
|
label={<CreditAmount amount={Number(supportsAmount)} precision={2} />}
|
||||||
|
aria-label={__('Unlock tips')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
openModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
|
openModal(MODALS.LIQUIDATE_SUPPORTS, { uri });
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue