From 95cf3dd9d8ea2ecbc9699dffccd431bcdced8c26 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 25 Jun 2018 02:28:03 -0400 Subject: [PATCH] use green icon for download/open file icon --- src/renderer/component/common/icon.jsx | 10 ++++++---- src/renderer/component/fileDownloadLink/view.jsx | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/renderer/component/common/icon.jsx b/src/renderer/component/common/icon.jsx index 547a8a618..c331012e5 100644 --- a/src/renderer/component/common/icon.jsx +++ b/src/renderer/component/common/icon.jsx @@ -4,8 +4,10 @@ import * as FeatherIcons from 'react-feather'; import * as icons from 'constants/icons'; import Tooltip from 'component/common/tooltip'; +// It would be nice to standardize this somehow +// These are copied from `scss/vars`, can they both come from the same source? const RED_COLOR = '#e2495e'; -const PURPLE_COLOR = '#8165b0'; +const GREEN_COLOR = '#44b098'; type Props = { icon: string, @@ -29,10 +31,10 @@ class IconComponent extends React.PureComponent { switch (color) { case 'red': return RED_COLOR; - case 'purple': - return PURPLE_COLOR; + case 'green': + return GREEN_COLOR; default: - return null; + return undefined; } }; diff --git a/src/renderer/component/fileDownloadLink/view.jsx b/src/renderer/component/fileDownloadLink/view.jsx index ab4e9f362..ccc0f2ba7 100644 --- a/src/renderer/component/fileDownloadLink/view.jsx +++ b/src/renderer/component/fileDownloadLink/view.jsx @@ -77,7 +77,7 @@ class FileDownloadLink extends React.PureComponent {