From d88752c6464db9722cca9385895b38afb6034a50 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 22 Jul 2021 17:29:57 -0400 Subject: [PATCH] music icon, fix lint --- ui/component/common/icon-custom.jsx | 8 ++++++++ ui/component/walletTipAmountSelector/view.jsx | 7 ++++--- ui/constants/icons.js | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index c28e8de54..d55f84cc8 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -2315,4 +2315,12 @@ export const icons = { ), + [ICONS.MUSIC]: buildIcon( + + + + + + + ), }; diff --git a/ui/component/walletTipAmountSelector/view.jsx b/ui/component/walletTipAmountSelector/view.jsx index 98006abe7..db5c4abd2 100644 --- a/ui/component/walletTipAmountSelector/view.jsx +++ b/ui/component/walletTipAmountSelector/view.jsx @@ -34,7 +34,7 @@ type Props = { uri: string, onTipErrorChange: (string) => void, activeTab: string, - shouldDisableReviewButton: (boolean) => void + shouldDisableReviewButton: (boolean) => void, }; function WalletTipAmountSelector(props: Props) { @@ -46,7 +46,7 @@ function WalletTipAmountSelector(props: Props) { const [hasCardSaved, setHasSavedCard] = usePersistedState('comment-support:hasCardSaved', false); // if it's fiat but there's no card saved OR the creator can't receive fiat tips - const shouldDisableFiatSelectors = (activeTab === TAB_FIAT && (!hasCardSaved || !canReceiveFiatTip)); + const shouldDisableFiatSelectors = activeTab === TAB_FIAT && (!hasCardSaved || !canReceiveFiatTip); /** * whether tip amount selection/review functionality should be disabled @@ -120,7 +120,8 @@ function WalletTipAmountSelector(props: Props) { // setHasSavedCard(false); // setCanReceiveFiatTip(true); - let regexp, tipError; + let regexp, + tipError = ''; if (amount === 0) { tipError = __('Amount must be a positive number'); diff --git a/ui/constants/icons.js b/ui/constants/icons.js index 8f57851ee..db057e8f1 100644 --- a/ui/constants/icons.js +++ b/ui/constants/icons.js @@ -164,3 +164,4 @@ export const TIME = 'time'; export const GLOBE = 'globe'; export const RSS = 'rss'; export const STAR = 'star'; +export const MUSIC = 'MusicCategory';