From fc13b0d602785cb91d828667c5e79e13d35c46ab Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 16 Aug 2018 21:25:57 +0200 Subject: [PATCH] Better support for icons --- src/js/components/Icon/index.js | 4 +- src/js/config/icons.js | 320 +++++++++++++++++- .../NavigationMenu/CoinMenu/index.js | 3 +- 3 files changed, 321 insertions(+), 6 deletions(-) diff --git a/src/js/components/Icon/index.js b/src/js/components/Icon/index.js index 91f308fb..d36e8b76 100644 --- a/src/js/components/Icon/index.js +++ b/src/js/components/Icon/index.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -const Icon = ({ icon, size = 30, color = 'black' }) => { +const Icon = ({ icon, size = 32, color = 'black' }) => { const styles = { svg: { display: 'inline-block', @@ -17,7 +17,7 @@ const Icon = ({ icon, size = 30, color = 'black' }) => { style={styles.svg} width={`${size}`} height={`${size}`} - viewBox="0 0 16 16" + viewBox="0 0 1024 1024" > )} @@ -136,7 +137,7 @@ class CoinMenu extends Component { name: coin.coinName, }} icon={{ - type: ICONS.REDIRECT, + type: ICONS.SKIP, color: colors.TEXT_SECONDARY, }} />