Fix icon color
This commit is contained in:
parent
12df842092
commit
64ae2ac583
2 changed files with 4 additions and 1 deletions
|
@ -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')}
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue