From 9d7161a29421f78e319a9ece7057699061ac3c62 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 3 Oct 2018 12:42:09 +0200 Subject: [PATCH] Added firmware update page --- src/components/Heading/index.js | 2 + .../Wallet/views/FirmwareUpdate/index.js | 123 ++++++++++++++++++ src/views/index.js | 1 + 3 files changed, 126 insertions(+) create mode 100644 src/views/Wallet/views/FirmwareUpdate/index.js diff --git a/src/components/Heading/index.js b/src/components/Heading/index.js index af5ef892..d62aef5d 100644 --- a/src/components/Heading/index.js +++ b/src/components/Heading/index.js @@ -6,6 +6,8 @@ const baseStyles = css` text-rendering: optimizeLegibility; color: ${colors.TEXT_PRIMARY}; font-weight: bold; + padding: 0; + margin: 0; `; const H1 = styled.h1` diff --git a/src/views/Wallet/views/FirmwareUpdate/index.js b/src/views/Wallet/views/FirmwareUpdate/index.js new file mode 100644 index 00000000..10f82440 --- /dev/null +++ b/src/views/Wallet/views/FirmwareUpdate/index.js @@ -0,0 +1,123 @@ +import React from 'react'; +import styled from 'styled-components'; +import { H1 } from 'components/Heading'; +import P from 'components/Paragraph'; +import colors from 'config/colors'; +import Link from 'components/Link'; +import Button from 'components/Button'; +import { connect } from 'react-redux'; +import { NavLink } from 'react-router-dom'; +import { FONT_SIZE } from 'config/variables'; + +const Wrapper = styled.section` + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 100%; +`; + +const StyledNavLink = styled(NavLink)` + color: ${colors.TEXT_SECONDARY}; + padding-top: 20px; + font-size: ${FONT_SIZE.SMALL}; +`; + +const Image = styled.div` + padding-bottom: 30px; +`; + +const StyledP = styled(P)` + padding: 0 0 15px 0; +`; + +const FirmwareUpdate = () => ( + + + + Chip + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

It’s time to update your firmware

+ Please use the old wallet to do that. + + + + + I’ll do that later. + +
+); + +export default connect(null, null)(FirmwareUpdate); diff --git a/src/views/index.js b/src/views/index.js index 11fa8bed..29a4f471 100644 --- a/src/views/index.js +++ b/src/views/index.js @@ -20,6 +20,7 @@ import WalletDashboard from 'views/Wallet/views/Dashboard'; import WalletDeviceSettings from 'views/Wallet/views/DeviceSettings'; import WalletSettings from 'views/Wallet/views/WalletSettings'; import WalletBootloader from 'views/Wallet/views/Bootloader'; +import WalletFirmwareUpdate from 'views/Wallet/views/FirmwareUpdate'; import WalletInitialize from 'views/Wallet/views/Initialize'; import WalletAcquire from 'views/Wallet/views/Acquire'; import WalletUnreadableDevice from 'views/Wallet/views/UnreadableDevice';