music icon, fix lint

This commit is contained in:
zeppi 2021-07-22 17:29:57 -04:00 committed by jessopb
parent 15e696c4d6
commit d88752c646
3 changed files with 13 additions and 3 deletions

View file

@ -2315,4 +2315,12 @@ export const icons = {
<path d="M12.729 1.2l3.346 6.629 6.44.638a.805.805 0 01.5 1.374l-5.3 5.253 1.965 7.138a.813.813 0 01-1.151.935L12 19.934l-6.52 3.229a.813.813 0 01-1.151-.935l1.965-7.138L.99 9.837a.805.805 0 01.5-1.374l6.44-.638L11.271 1.2a.819.819 0 011.458 0z" /> <path d="M12.729 1.2l3.346 6.629 6.44.638a.805.805 0 01.5 1.374l-5.3 5.253 1.965 7.138a.813.813 0 01-1.151.935L12 19.934l-6.52 3.229a.813.813 0 01-1.151-.935l1.965-7.138L.99 9.837a.805.805 0 01.5-1.374l6.44-.638L11.271 1.2a.819.819 0 011.458 0z" />
</g> </g>
), ),
[ICONS.MUSIC]: buildIcon(
<g>
<path d="M19.8 6.267a1 1 0 01-1.414 0l-1.411-1.414a1 1 0 010-1.415l.186-.186a1 1 0 01.391-.242l4.536-1.51a.927.927 0 01.949 1.535z" />
<path d="M16.975 4.853L9.55 12.277l1.414 1.414 7.425-7.424" />
<path d="M11.187 10.64a2.881 2.881 0 01-.8-2.538 6.278 6.278 0 01.738-1.99A1.15 1.15 0 009.3 4.749a6.56 6.56 0 00-1.91 3.406c-.22 1.038-1 2.463-2.1 2.485a4.638 4.638 0 00-4.6 4.746 5.927 5.927 0 001.812 4.249l1.1 1.1a5.93 5.93 0 004.249 1.812 4.639 4.639 0 004.746-4.6c0-1.1 1.235-1.789 2.286-1.755a4.13 4.13 0 003.324-1.269 1.1 1.1 0 00-.719-1.846c-3.306-.254-4-.141-4.891-1.029M7.782 13.338l2.122 2.121" />
<path d="M4.954 14.753l3.535 3.535-1.768 1.768-3.535-3.535z" />
</g>
),
}; };

View file

@ -34,7 +34,7 @@ type Props = {
uri: string, uri: string,
onTipErrorChange: (string) => void, onTipErrorChange: (string) => void,
activeTab: string, activeTab: string,
shouldDisableReviewButton: (boolean) => void shouldDisableReviewButton: (boolean) => void,
}; };
function WalletTipAmountSelector(props: Props) { function WalletTipAmountSelector(props: Props) {
@ -46,7 +46,7 @@ function WalletTipAmountSelector(props: Props) {
const [hasCardSaved, setHasSavedCard] = usePersistedState('comment-support:hasCardSaved', false); 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 // 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 * whether tip amount selection/review functionality should be disabled
@ -120,7 +120,8 @@ function WalletTipAmountSelector(props: Props) {
// setHasSavedCard(false); // setHasSavedCard(false);
// setCanReceiveFiatTip(true); // setCanReceiveFiatTip(true);
let regexp, tipError; let regexp,
tipError = '';
if (amount === 0) { if (amount === 0) {
tipError = __('Amount must be a positive number'); tipError = __('Amount must be a positive number');

View file

@ -164,3 +164,4 @@ export const TIME = 'time';
export const GLOBE = 'globe'; export const GLOBE = 'globe';
export const RSS = 'rss'; export const RSS = 'rss';
export const STAR = 'star'; export const STAR = 'star';
export const MUSIC = 'MusicCategory';