From dfc2ae2827b9e073d9f4bda763df0e1defee5a68 Mon Sep 17 00:00:00 2001 From: zeppi Date: Sun, 23 Jan 2022 00:03:39 -0500 Subject: [PATCH] desktop tweaks --- static/app-strings.json | 5 +++++ ui/component/commentCreate/view.jsx | 7 ++++--- ui/constants/emotes.js | 2 +- ui/constants/stickers.js | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 092880224..6e93c4912 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -2242,5 +2242,10 @@ "LBC": "LBC", "Add a Card": "Add a Card", " To Tip Creators": " To Tip Creators", + "Nothing found": "Nothing found", + "From Comments": "From Comments", + "This support is priced in $USD.": "This support is priced in $USD.", + "The current exchange rate for the submitted LBC amount is ~ $%exchange_amount%.": "The current exchange rate for the submitted LBC amount is ~ $%exchange_amount%.", + "Amount of $%input_amount% LBC in USB is lower than price of $%price_amount%": "Amount of $%input_amount% LBC in USB is lower than price of $%price_amount%", "--end--": "--end--" } diff --git a/ui/component/commentCreate/view.jsx b/ui/component/commentCreate/view.jsx index 66135c871..a29f039f9 100644 --- a/ui/component/commentCreate/view.jsx +++ b/ui/component/commentCreate/view.jsx @@ -143,7 +143,7 @@ export function CommentCreate(props: Props) { setStickerSelector(false); if (sticker.price && sticker.price > 0) { - setActiveTab(TAB_FIAT); + setActiveTab(TAB_LBC); setIsSupportComment(true); } } @@ -252,7 +252,7 @@ export function CommentCreate(props: Props) { } ); } else { - // No cash tips + // No cash tips - REMOVE // const tipParams: TipParams = { tipAmount: Math.round(tipAmount * 100) / 100, tipChannelName, channelClaimId }; // const userParams: UserParams = { activeChannelName, activeChannelId }; // sendCashTip(tipParams, userParams, claim.claim_id, stripeEnvironment, (customerTipResponse) => { @@ -364,6 +364,7 @@ export function CommentCreate(props: Props) { .catch(() => {}); }, [canReceiveFiatTip, claim.claim_id, claim.name, claim.signing_channel, stickerSelector]); + // LIVESTREAM ONLY - REMOVE // Handle keyboard shortcut comment creation // React.useEffect(() => { // function altEnterListener(e: SyntheticKeyboardEvent<*>) { @@ -591,7 +592,7 @@ export function CommentCreate(props: Props) { setStickerSelector(true); } )} - + {/* below buttons are unnecessary - REMOVE */} {!claimIsMine && ( <> {(!isSupportComment || activeTab !== TAB_LBC) && diff --git a/ui/constants/emotes.js b/ui/constants/emotes.js index 99f731f5d..24e22754f 100644 --- a/ui/constants/emotes.js +++ b/ui/constants/emotes.js @@ -3,7 +3,7 @@ const buildCDNUrl = (path: string) => `https://static.odycdn.com/emoticons/${path}`; const buildEmote = (name: string, path: string) => ({ - name: __(`:${name}:`), + name: `:${name}:`, url: buildCDNUrl(path), }); diff --git a/ui/constants/stickers.js b/ui/constants/stickers.js index 16684fd8d..4d24d3633 100644 --- a/ui/constants/stickers.js +++ b/ui/constants/stickers.js @@ -3,7 +3,7 @@ const buildCDNUrl = (path: string) => `https://static.odycdn.com/stickers/${path}`; const buildSticker = (name: string, path: string, price?: number) => ({ - name: __(`:${name}:`), + name: `:${name}:`, url: buildCDNUrl(path), price: price, });