diff --git a/package.json b/package.json index 75029bb7..c69fbe91 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "rimraf": "^2.6.2", "styled-components": "^4.1.2", "styled-normalize": "^8.0.4", - "trezor-connect": "6.0.3-beta.10", + "trezor-connect": "7.0.0-beta.1", "wallet-address-validator": "^0.2.4", "web3": "1.0.0-beta.35", "webpack": "^4.16.3", diff --git a/src/components/images/CoinLogo/index.js b/src/components/images/CoinLogo/index.js index ae03c897..0cca9ba0 100644 --- a/src/components/images/CoinLogo/index.js +++ b/src/components/images/CoinLogo/index.js @@ -34,7 +34,7 @@ class CoinLogo extends PureComponent { ); diff --git a/src/components/modals/external/Cardano/index.js b/src/components/modals/external/Cardano/index.js index bb413f36..8479fed9 100644 --- a/src/components/modals/external/Cardano/index.js +++ b/src/components/modals/external/Cardano/index.js @@ -58,7 +58,7 @@ const CardanoWallet = (props: Props) => (

You will be redirected to external wallet

i.id === 'ada').url}> - Go to external wallet + Go to external wallet ); diff --git a/src/components/images/CoinLogo/images/ada.png b/src/images/coins/ada.png similarity index 100% rename from src/components/images/CoinLogo/images/ada.png rename to src/images/coins/ada.png diff --git a/src/components/images/CoinLogo/images/bch.png b/src/images/coins/bch.png similarity index 100% rename from src/components/images/CoinLogo/images/bch.png rename to src/images/coins/bch.png diff --git a/src/components/images/CoinLogo/images/btc.png b/src/images/coins/btc.png similarity index 100% rename from src/components/images/CoinLogo/images/btc.png rename to src/images/coins/btc.png diff --git a/src/components/images/CoinLogo/images/btg.png b/src/images/coins/btg.png similarity index 100% rename from src/components/images/CoinLogo/images/btg.png rename to src/images/coins/btg.png diff --git a/src/components/images/CoinLogo/images/dash.png b/src/images/coins/dash.png similarity index 100% rename from src/components/images/CoinLogo/images/dash.png rename to src/images/coins/dash.png diff --git a/src/components/images/CoinLogo/images/dgb.png b/src/images/coins/dgb.png similarity index 100% rename from src/components/images/CoinLogo/images/dgb.png rename to src/images/coins/dgb.png diff --git a/src/components/images/CoinLogo/images/doge.png b/src/images/coins/doge.png similarity index 100% rename from src/components/images/CoinLogo/images/doge.png rename to src/images/coins/doge.png diff --git a/src/components/images/CoinLogo/images/etc.png b/src/images/coins/etc.png similarity index 100% rename from src/components/images/CoinLogo/images/etc.png rename to src/images/coins/etc.png diff --git a/src/components/images/CoinLogo/images/eth.png b/src/images/coins/eth.png similarity index 100% rename from src/components/images/CoinLogo/images/eth.png rename to src/images/coins/eth.png diff --git a/src/components/images/CoinLogo/images/ltc.png b/src/images/coins/ltc.png similarity index 100% rename from src/components/images/CoinLogo/images/ltc.png rename to src/images/coins/ltc.png diff --git a/src/components/images/CoinLogo/images/nem.png b/src/images/coins/nem.png similarity index 100% rename from src/components/images/CoinLogo/images/nem.png rename to src/images/coins/nem.png diff --git a/src/components/images/CoinLogo/images/nmc.png b/src/images/coins/nmc.png similarity index 100% rename from src/components/images/CoinLogo/images/nmc.png rename to src/images/coins/nmc.png diff --git a/src/components/images/CoinLogo/images/rinkeby.png b/src/images/coins/rinkeby.png similarity index 100% rename from src/components/images/CoinLogo/images/rinkeby.png rename to src/images/coins/rinkeby.png diff --git a/src/components/images/CoinLogo/images/trop.png b/src/images/coins/trop.png similarity index 100% rename from src/components/images/CoinLogo/images/trop.png rename to src/images/coins/trop.png diff --git a/src/components/images/CoinLogo/images/txrp.png b/src/images/coins/txrp.png similarity index 100% rename from src/components/images/CoinLogo/images/txrp.png rename to src/images/coins/txrp.png diff --git a/src/components/images/CoinLogo/images/vtc.png b/src/images/coins/vtc.png similarity index 100% rename from src/components/images/CoinLogo/images/vtc.png rename to src/images/coins/vtc.png diff --git a/src/components/images/CoinLogo/images/xem.png b/src/images/coins/xem.png similarity index 100% rename from src/components/images/CoinLogo/images/xem.png rename to src/images/coins/xem.png diff --git a/src/components/images/CoinLogo/images/xlm.png b/src/images/coins/xlm.png similarity index 100% rename from src/components/images/CoinLogo/images/xlm.png rename to src/images/coins/xlm.png diff --git a/src/components/images/CoinLogo/images/xrp.png b/src/images/coins/xrp.png similarity index 100% rename from src/components/images/CoinLogo/images/xrp.png rename to src/images/coins/xrp.png diff --git a/src/components/images/CoinLogo/images/zec.png b/src/images/coins/zec.png similarity index 100% rename from src/components/images/CoinLogo/images/zec.png rename to src/images/coins/zec.png diff --git a/src/images/dashboard.png b/src/images/dashboard.png deleted file mode 100644 index 790afebf..00000000 Binary files a/src/images/dashboard.png and /dev/null differ diff --git a/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js b/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js index 12ca6882..b48f562b 100644 --- a/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js +++ b/src/views/Wallet/components/Content/components/FirmwareUnsupported/index.js @@ -3,8 +3,8 @@ import React from 'react'; import styled from 'styled-components'; import colors from 'config/colors'; -import { FONT_SIZE } from 'config/variables'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; +import Paragraph from 'components/Paragraph'; import Button from 'components/Button'; import Link from 'components/Link'; import CoinLogo from 'components/images/CoinLogo'; @@ -39,21 +39,17 @@ const StyledCoinLogo = styled(CoinLogo)` width: 32px; `; -const StyledLink = styled(Link)` - padding-top: 24px; -`; - const Row = styled.div` - flex: 1; display: flex; + padding: 50px 0; + flex-direction: column; - justify-content: center; align-items: center; + text-align: center; `; -const Message = styled.div` - font-size: ${FONT_SIZE.SMALL}; - color: ${colors.TEXT_SECONDARY}; +const Message = styled(Paragraph)` + padding: 0 0 15px 0; text-align: center; `; @@ -61,11 +57,11 @@ const FirmwareUnsupported = (props: Props) => ( {props.networkShortcut && } -

{props.title}

+

{props.title}

{props.message} - + - +
); diff --git a/src/views/Wallet/components/Content/index.js b/src/views/Wallet/components/Content/index.js index ab621a2b..150b84ff 100644 --- a/src/views/Wallet/components/Content/index.js +++ b/src/views/Wallet/components/Content/index.js @@ -4,7 +4,9 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Loader from 'components/Loader'; -import { FONT_SIZE } from 'config/variables'; +import { FONT_SIZE, FONT_WEIGHT } from 'config/variables'; +import { H1 } from 'components/Heading'; +import P from 'components/Paragraph'; import colors from 'config/colors'; import type { State } from 'flowtype'; @@ -34,15 +36,15 @@ const Loading = styled.div` flex-direction: column; `; -const Text = styled.div` +const Title = styled(H1)` font-size: ${FONT_SIZE.BIGGER}; - color: ${colors.TEXT_SECONDARY}; + font-weight: ${FONT_WEIGHT.NORMAL}; + color: ${props => (props.type === 'progress' ? colors.TEXT_SECONDARY : '')}; margin-left: 10px; `; -const Message = styled.div` - font-size: ${FONT_SIZE.BASE}; - color: ${colors.TEXT_PRIMARY}; +const Message = styled(P)` + text-align: center; `; const Row = styled.div` @@ -74,7 +76,7 @@ const Content = ({ {loader.type === 'progress' && } - {loader.title || 'Initializing accounts'} + {loader.title || 'Initializing accounts'} {loader.message && {loader.message}} diff --git a/src/views/Wallet/views/Bootloader/index.js b/src/views/Wallet/views/Bootloader/index.js index 15230db0..d82a7a2a 100644 --- a/src/views/Wallet/views/Bootloader/index.js +++ b/src/views/Wallet/views/Bootloader/index.js @@ -1,30 +1,32 @@ import React from 'react'; import styled from 'styled-components'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; +import P from 'components/Paragraph'; import { connect } from 'react-redux'; const Wrapper = styled.div` display: flex; flex-direction: column; + padding: 40px 35px 40px 35px; `; const Row = styled.div` display: flex; flex-direction: column; align-items: center; - padding: 100px 48px; + padding: 50px 0; `; -const P = styled.p` - padding: 10px 0px; +const StyledP = styled(P)` + padding: 0 0 15px 0; text-align: center; `; const Bootloader = () => ( -

Your device is in firmware update mode

-

Please re-connect it

+

Your device is in firmware update mode

+ Please re-connect it
); diff --git a/src/views/Wallet/views/Dashboard/index.js b/src/views/Wallet/views/Dashboard/index.js index ea4dfc35..42c75d13 100644 --- a/src/views/Wallet/views/Dashboard/index.js +++ b/src/views/Wallet/views/Dashboard/index.js @@ -3,8 +3,11 @@ import styled from 'styled-components'; import { connect } from 'react-redux'; import Content from 'views/Wallet/components/Content'; -import { H2 } from 'components/Heading'; -import DashboardImg from 'images/dashboard.png'; +import EthIcon from 'images/coins/eth.png'; +import RippleIcon from 'images/coins/xrp.png'; + +import { H1 } from 'components/Heading'; +import Paragraph from 'components/Paragraph'; const Wrapper = styled.div` display: flex; @@ -14,25 +17,45 @@ const Wrapper = styled.div` const Row = styled.div` flex: 1; display: flex; - padding: 100px 48px; + padding: 50px 0; flex-direction: column; align-items: center; `; -const P = styled.p` - padding: 24px 0px; +const StyledP = styled(Paragraph)` + padding: 0 0 15px 0; text-align: center; `; +const Overlay = styled.div` + display: flex; + width: 100%; + height: 40px; + justify-content: center; + align-items: center; + opacity: 0.2; + background: white; +`; + +const Image = styled.img` + margin-right: 10px; + + &:last-child { + margin-right: 0px; + } +`; + const Dashboard = () => ( -

Dashboard

-

Please select your coin

-

You will gain access to receiving & sending selected coin

- Dashboard +

Please select your coin

+ You will gain access to receiving & sending selected coin + + + +
diff --git a/src/views/Wallet/views/DeviceSettings/index.js b/src/views/Wallet/views/DeviceSettings/index.js index ca5c384e..4dbc1546 100644 --- a/src/views/Wallet/views/DeviceSettings/index.js +++ b/src/views/Wallet/views/DeviceSettings/index.js @@ -1,6 +1,6 @@ import React from 'react'; import styled from 'styled-components'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; import Icon from 'components/Icon'; import colors from 'config/colors'; import Button from 'components/Button'; @@ -20,11 +20,11 @@ const Row = styled.div` display: flex; flex-direction: column; align-items: center; - padding: 100px 48px; + padding: 50px 0; `; const StyledP = styled(P)` - padding: 10px 0 15px 0; + padding: 0 0 15px 0; text-align: center; `; @@ -37,8 +37,8 @@ const DeviceSettings = () => ( color={colors.WARNING_PRIMARY} icon={ICONS.WARNING} /> -

Device settings is under construction

- Please use Bitcoin wallet interface to change your device settings +

Device settings is under construction

+ Please use Bitcoin wallet interface to change your device settings diff --git a/src/views/Wallet/views/FirmwareUpdate/index.js b/src/views/Wallet/views/FirmwareUpdate/index.js index 6c6699ea..f15bcfa4 100644 --- a/src/views/Wallet/views/FirmwareUpdate/index.js +++ b/src/views/Wallet/views/FirmwareUpdate/index.js @@ -31,7 +31,7 @@ const Wrapper = styled.section` flex-direction: column; justify-content: center; align-items: center; - padding: 100px 48px; + padding: 90px 35px 40px 35px; `; const StyledNavLink = styled(Link)` @@ -46,6 +46,7 @@ const Image = styled.div` const StyledP = styled(P)` padding: 0 0 15px 0; + text-align: center; `; const FirmwareUpdate = (props: Props) => ( diff --git a/src/views/Wallet/views/Initialize/index.js b/src/views/Wallet/views/Initialize/index.js index 1a5a5309..39055a9f 100644 --- a/src/views/Wallet/views/Initialize/index.js +++ b/src/views/Wallet/views/Initialize/index.js @@ -1,5 +1,5 @@ import styled from 'styled-components'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; import Button from 'components/Button'; import Paragraph from 'components/Paragraph'; import React from 'react'; @@ -8,27 +8,27 @@ import { connect } from 'react-redux'; const Wrapper = styled.div` display: flex; flex-direction: column; + padding: 40px 35px 40px 35px; `; const Row = styled.div` display: flex; flex-direction: column; align-items: center; - padding: 100px 48px; + padding: 50px 0; `; const A = styled.a``; const StyledParagraph = styled(Paragraph)` - margin: 10px 50px; - display: block; + padding: 0 0 15px 0; text-align: center; `; const Initialize = () => ( -

Your device is in not initialized

+

Your device is not initialized

Please use Bitcoin wallet interface to start initialization process diff --git a/src/views/Wallet/views/Seedless/index.js b/src/views/Wallet/views/Seedless/index.js index 15dd943d..bde5f915 100644 --- a/src/views/Wallet/views/Seedless/index.js +++ b/src/views/Wallet/views/Seedless/index.js @@ -1,31 +1,32 @@ import styled from 'styled-components'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; import Paragraph from 'components/Paragraph'; import React from 'react'; import { connect } from 'react-redux'; + const Wrapper = styled.div` display: flex; flex-direction: column; + padding: 40px 35px 40px 35px; `; const Row = styled.div` display: flex; flex-direction: column; align-items: center; - padding: 100px 48px; + padding: 50px 0; `; const StyledParagraph = styled(Paragraph)` - margin: 10px 50px; - display: block; + padding: 0 0 15px 0; text-align: center; `; const Seedless = () => ( -

Device is in seedless mode

+

Device is in seedless mode

It's not suitable to use this service.
diff --git a/src/views/Wallet/views/WalletSettings/index.js b/src/views/Wallet/views/WalletSettings/index.js index c584f958..5f2b3c66 100644 --- a/src/views/Wallet/views/WalletSettings/index.js +++ b/src/views/Wallet/views/WalletSettings/index.js @@ -6,7 +6,7 @@ import colors from 'config/colors'; import icons from 'config/icons'; import Content from 'views/Wallet/components/Content'; -import { H2 } from 'components/Heading'; +import { H1 } from 'components/Heading'; import Icon from 'components/Icon'; import Link from 'components/Link'; import Button from 'components/Button'; @@ -20,7 +20,7 @@ const Row = styled.div` display: flex; flex-direction: column; align-items: center; - padding: 100px 48px; + padding: 50px 0; `; const WalletSettings = () => ( @@ -32,7 +32,7 @@ const WalletSettings = () => ( color={colors.WARNING_PRIMARY} icon={icons.WARNING} /> -

Wallet settings is under construction

+

Wallet settings is under construction

diff --git a/yarn.lock b/yarn.lock index ef2d6d3c..f203161f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -208,7 +208,6 @@ "@emotion/cache@10.0.0": version "10.0.0" resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.0.tgz#e22eadcb770de4131ec707c84207e9e1ce210413" - integrity sha512-1/sT6GNyvWmxCtJek8ZDV+b+a+NMDx8/61UTnnF3rqrTY7bLTjw+fmXO7WgUIH0owuWKxza/J/FfAWC/RU4G7A== dependencies: "@emotion/sheet" "0.9.2" "@emotion/stylis" "0.8.3" @@ -218,7 +217,6 @@ "@emotion/hash@0.7.1": version "0.7.1" resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.7.1.tgz#9833722341379fb7d67f06a4b00ab3c37913da53" - integrity sha512-OYpa/Sg+2GDX+jibUfpZVn1YqSVRpYmTLF2eyAfrFTIJSbwyIrc+YscayoykvaOME/wV4BV0Sa0yqdMrgse6mA== "@emotion/is-prop-valid@^0.6.8": version "0.6.8" @@ -229,7 +227,6 @@ "@emotion/memoize@0.7.1": version "0.7.1" resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.1.tgz#e93c13942592cf5ef01aa8297444dc192beee52f" - integrity sha512-Qv4LTqO11jepd5Qmlp3M1YEjBumoTHcHFdgPTQ+sFlIL5myi/7xu/POwP7IRu6odBdmLXdtIs1D6TuW6kbwbbg== "@emotion/memoize@^0.6.6": version "0.6.6" @@ -238,7 +235,6 @@ "@emotion/serialize@^0.11.3": version "0.11.3" resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.3.tgz#c4af2d96e3ddb9a749b7b567daa7556bcae45af2" - integrity sha512-6Q+XH/7kMdHwtylwZvdkOVMydaGZ989axQ56NF7urTR7eiDMLGun//pFUy31ha6QR4C6JB+KJVhZ3AEAJm9Z1g== dependencies: "@emotion/hash" "0.7.1" "@emotion/memoize" "0.7.1" @@ -249,12 +245,10 @@ "@emotion/sheet@0.9.2": version "0.9.2" resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.2.tgz#74e5c6b5e489a1ba30ab246ab5eedd96916487c4" - integrity sha512-pVBLzIbC/QCHDKJF2E82V2H/W/B004mDFQZiyo/MSR+VC4pV5JLG0TF/zgQDFvP3fZL/5RTPGEmXlYJBMUuJ+A== "@emotion/stylis@0.8.3": version "0.8.3" resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.3.tgz#3ca7e9bcb31b3cb4afbaeb66156d86ee85e23246" - integrity sha512-M3nMfJ6ndJMYloSIbYEBq6G3eqoYD41BpDOxreE8j0cb4fzz/5qvmqU9Mb2hzsXcCnIlGlWhS03PCzVGvTAe0Q== "@emotion/unitless@0.7.3", "@emotion/unitless@^0.7.0": version "0.7.3" @@ -263,12 +257,10 @@ "@emotion/utils@0.11.1": version "0.11.1" resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.11.1.tgz#8529b7412a6eb4b48bdf6e720cc1b8e6e1e17628" - integrity sha512-8M3VN0hetwhsJ8dH8VkVy7xo5/1VoBsDOk/T4SJOeXwTO1c4uIqVNx2qyecLFnnUWD5vvUqHQ1gASSeUN6zcTg== "@emotion/weak-memoize@0.2.2": version "0.2.2" resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.2.tgz#63985d3d8b02530e0869962f4da09142ee8e200e" - integrity sha512-n/VQ4mbfr81aqkx/XmVicOLjviMuy02eenSdJY33SVA7S2J42EU0P1H0mOogfYedb3wXA0d/LVtBrgTSm04WEA== "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" @@ -2708,7 +2700,6 @@ create-ecdh@^4.0.0: create-emotion@^10.0.4: version "10.0.5" resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-10.0.5.tgz#22487f19b59a7ed10144f808289eadffebcfab06" - integrity sha512-MIOSeFiMtPrAULEtd2GFYGZEzeN2xnCFoiHrjvUYjxruYCJfGqUOBmh4YEN1yU+Ww5yXr+DIZibFl7FEOP57iA== dependencies: "@emotion/cache" "10.0.0" "@emotion/serialize" "^0.11.3" @@ -2845,7 +2836,6 @@ cssstyle@^1.0.0: csstype@^2.5.7: version "2.6.0" resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.0.tgz#6cf7b2fa7fc32aab3d746802c244d4eda71371a2" - integrity sha512-by8hi8BlLbowQq0qtkx54d9aN73R9oUW20HISpka5kmgsR9F7nnxgfsemuR2sdCKZh+CDNf5egW9UZMm4mgJRg== currently-unhandled@^0.4.1: version "0.4.1" @@ -8045,7 +8035,6 @@ react-scale-text@^1.2.2: react-select@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/react-select/-/react-select-2.2.0.tgz#67c8b5c2dcb8df0384f2a103efe952570f5d6b93" - integrity sha512-FOnsm/zrJ2pZvYsEfs58Xvru0SHL1jXAZTCFTWcOxmQSnRKgYuXUDFdpDiET90GLtJEF+t6BaZeD43bUH6/NZQ== dependencies: classnames "^2.2.5" create-emotion "^10.0.4" @@ -9801,9 +9790,9 @@ tr46@^1.0.1: dependencies: punycode "^2.1.0" -trezor-connect@6.0.3-beta.10: - version "6.0.3-beta.10" - resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-6.0.3-beta.10.tgz#a703b06946bb98912cbe719f2bb3393ee41f03b1" +trezor-connect@7.0.0-beta.1: + version "7.0.0-beta.1" + resolved "https://registry.yarnpkg.com/trezor-connect/-/trezor-connect-7.0.0-beta.1.tgz#de87d8f1d9878101380f7b3198bf2531d7560a5c" dependencies: babel-runtime "^6.26.0" events "^1.1.1"