Fix icon color
This commit is contained in:
parent
8b70aa65c4
commit
c97b9c23e9
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}
|
icon={fileAction ? (!isSaved ? ICONS.ADD : ICONS.STACK) : ICONS.LIBRARY}
|
||||||
iconSize={fileAction ? 22 : undefined}
|
iconSize={fileAction ? 22 : undefined}
|
||||||
iconColor={isSaved && 'green'}
|
iconColor={isSaved && 'primary'}
|
||||||
label={uri ? (!isSaved ? __('Save') : __('Saved')) : __('New List')}
|
label={uri ? (!isSaved ? __('Save') : __('Saved')) : __('New List')}
|
||||||
requiresAuth={IS_WEB}
|
requiresAuth={IS_WEB}
|
||||||
title={__('Add this claim to a list')}
|
title={__('Add this claim to a list')}
|
||||||
|
|
|
@ -3,6 +3,7 @@ import * as ICONS from 'constants/icons';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import { icons } from './icon-custom';
|
import { icons } from './icon-custom';
|
||||||
|
import { DOMAIN } from 'config';
|
||||||
|
|
||||||
// It would be nice to standardize this somehow
|
// It would be nice to standardize this somehow
|
||||||
// These are copied from `scss/vars`, can they both come from the same source?
|
// 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) => {
|
getIconColor = (color: string) => {
|
||||||
switch (color) {
|
switch (color) {
|
||||||
|
case 'primary':
|
||||||
|
return DOMAIN === 'odysee.com' ? RED_COLOR : GREEN_COLOR;
|
||||||
case 'red':
|
case 'red':
|
||||||
return RED_COLOR;
|
return RED_COLOR;
|
||||||
case 'green':
|
case 'green':
|
||||||
|
|
Loading…
Reference in a new issue