Fix icon color

This commit is contained in:
saltrafael 2021-07-31 15:46:24 -03:00 committed by zeppi
parent 8b70aa65c4
commit c97b9c23e9
2 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,7 @@ export default function CollectionAddButton(props: Props) {
})}
icon={fileAction ? (!isSaved ? ICONS.ADD : ICONS.STACK) : ICONS.LIBRARY}
iconSize={fileAction ? 22 : undefined}
iconColor={isSaved && 'green'}
iconColor={isSaved && 'primary'}
label={uri ? (!isSaved ? __('Save') : __('Saved')) : __('New List')}
requiresAuth={IS_WEB}
title={__('Add this claim to a list')}

View file

@ -3,6 +3,7 @@ import * as ICONS from 'constants/icons';
import React from 'react';
import classnames from 'classnames';
import { icons } from './icon-custom';
import { DOMAIN } from 'config';
// It would be nice to standardize this somehow
// These are copied from `scss/vars`, can they both come from the same source?
@ -38,6 +39,8 @@ class IconComponent extends React.PureComponent<Props> {
getIconColor = (color: string) => {
switch (color) {
case 'primary':
return DOMAIN === 'odysee.com' ? RED_COLOR : GREEN_COLOR;
case 'red':
return RED_COLOR;
case 'green':