From e70eb3b5bc2c9a675004dc8c2cc5feead9e929f9 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Thu, 25 Mar 2021 15:55:33 +0800 Subject: [PATCH] Tip-unlock: add tooltip and related strings --- static/app-strings.json | 3 +++ ui/component/fileDescription/view.jsx | 1 + ui/component/fileValues/view.jsx | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/app-strings.json b/static/app-strings.json index 5f6f439ea..97768a725 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -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", diff --git a/ui/component/fileDescription/view.jsx b/ui/component/fileDescription/view.jsx index 369452258..3cacdeed1 100644 --- a/ui/component/fileDescription/view.jsx +++ b/ui/component/fileDescription/view.jsx @@ -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 }); }} diff --git a/ui/component/fileValues/view.jsx b/ui/component/fileValues/view.jsx index 5df1ea343..f425fc169 100644 --- a/ui/component/fileValues/view.jsx +++ b/ui/component/fileValues/view.jsx @@ -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 { className="expandable__button" icon={ICONS.UNLOCK} label={} + aria-label={__('Unlock tips')} onClick={() => { openModal(MODALS.LIQUIDATE_SUPPORTS, { uri }); }}