From b7e5dba3d08a538032ede8798f0eab4786bccd07 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Fri, 10 Aug 2018 16:01:12 +0200 Subject: [PATCH] Sign and verify migrated to styled components --- .../wallet/account/sign/SignVerify.js | 83 ++++++++++++++----- src/js/config/colors.js | 2 + src/styles/index.less | 1 - src/styles/signverify.less | 36 -------- 4 files changed, 62 insertions(+), 60 deletions(-) delete mode 100644 src/styles/signverify.less diff --git a/src/js/components/wallet/account/sign/SignVerify.js b/src/js/components/wallet/account/sign/SignVerify.js index 1c7dcb41..20a9b4b5 100644 --- a/src/js/components/wallet/account/sign/SignVerify.js +++ b/src/js/components/wallet/account/sign/SignVerify.js @@ -1,29 +1,66 @@ import React from 'react'; +import styled from 'styled-components'; + import { H2 } from '~/js/components/common/Heading'; -import { bindActionCreators } from 'redux'; -import { connect } from 'react-redux'; +import colors from '~/js/config/colors'; + +const Wrapper = styled.div` + display: flex; + flex: 1; + flex-direction: row; + background: ${colors.WHITE}; + padding: 50px; +`; + +const StyledH2 = styled(H2)` + padding-bottom: 10px; +`; + +const Column = styled.div` + display: flex; + flex: 1; + flex-direction: column; +`; + +const Sign = styled(Column)``; + +const Verify = styled(Column)` + padding-left: 20px; +`; + +const Label = styled.div` + color: ${colors.LABEL}; + padding: 5px 0px; +`; + +const Textarea = styled.textarea` + resize: vertical; + width: 100%; +`; + +const Input = styled.input``; const SignVerify = () => ( -
-
-

Sign message

- -