From f34992dd681500d61bf8f32f41e5c30e23179f01 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 17 Dec 2018 12:52:47 +0100 Subject: [PATCH] proper link and coin img size --- .../components/FirmwareUnsupported/index.js | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js b/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js index 097f004d..ca9367eb 100644 --- a/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js +++ b/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js @@ -9,6 +9,14 @@ import Button from 'components/Button'; import Link from 'components/Link'; import CoinLogo from 'components/images/CoinLogo'; +const getInfoUrl = (networkShortcut: ?string) => { + const urls = { + default: 'https://wiki.trezor.io', + xrp: 'https://wiki.trezor.io/Ripple_(XRP)', + }; + + return networkShortcut ? urls[networkShortcut] : urls.default; +}; type Props = { networkShortcut: ?string, @@ -23,10 +31,12 @@ const Wrapper = styled.div` flex: 1; `; -const StyledCoinLogo = styled(CoinLogo)` +const CoinLogoWrapper = styled.div` margin: 10px 0; - padding: 0; - width: auto; +`; + +const StyledCoinLogo = styled(CoinLogo)` + width: 32px; `; const StyledLink = styled(Link)` @@ -52,10 +62,10 @@ const FirmwareUnsupported = (props: Props) => { return ( - {props.networkShortcut && } + {props.networkShortcut && }

{props.title}

{props.message} - +