mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-03 13:48:15 +00:00
NemWallet component
This commit is contained in:
parent
5eb5e3f774
commit
a9246c0c06
BIN
src/components/modals/external/NemWallet/components/NemImage/images/nem-download.png
vendored
Normal file
BIN
src/components/modals/external/NemWallet/components/NemImage/images/nem-download.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 KiB |
15
src/components/modals/external/NemWallet/components/NemImage/index.js
vendored
Normal file
15
src/components/modals/external/NemWallet/components/NemImage/index.js
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* @flow */
|
||||||
|
|
||||||
|
import React from 'react';
|
||||||
|
import styled from 'styled-components';
|
||||||
|
import DownloadImg from './images/nem-download.png';
|
||||||
|
|
||||||
|
const Img = styled.img`
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const NemImage = () => <Img src={DownloadImg} />;
|
||||||
|
|
||||||
|
export default NemImage;
|
@ -1,6 +1,7 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import colors from 'config/colors';
|
import colors from 'config/colors';
|
||||||
@ -8,9 +9,11 @@ import icons from 'config/icons';
|
|||||||
|
|
||||||
import Icon from 'components/Icon';
|
import Icon from 'components/Icon';
|
||||||
import Link from 'components/Link';
|
import Link from 'components/Link';
|
||||||
import { H3 } from 'components/Heading';
|
import Button from 'components/Button';
|
||||||
|
import { H3, H4 } from 'components/Heading';
|
||||||
import P from 'components/Paragraph';
|
import P from 'components/Paragraph';
|
||||||
|
|
||||||
|
import NemImage from './components/NemImage';
|
||||||
import type { Props as BaseProps } from '../../Container';
|
import type { Props as BaseProps } from '../../Container';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -18,11 +21,15 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
width: 360px;
|
width: 100%;
|
||||||
|
max-width: 620px;
|
||||||
padding: 24px 48px;
|
padding: 24px 48px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Header = styled.div``;
|
const StyledButton = styled(Button)`
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
width: 100%;
|
||||||
|
`;
|
||||||
|
|
||||||
const StyledLink = styled(Link)`
|
const StyledLink = styled(Link)`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -30,7 +37,7 @@ const StyledLink = styled(Link)`
|
|||||||
top: 10px;
|
top: 10px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Confirmation = (props: Props) => (
|
const NemWallet = (props: Props) => (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<StyledLink onClick={props.onCancel}>
|
<StyledLink onClick={props.onCancel}>
|
||||||
<Icon
|
<Icon
|
||||||
@ -39,12 +46,16 @@ const Confirmation = (props: Props) => (
|
|||||||
icon={icons.CLOSE}
|
icon={icons.CLOSE}
|
||||||
/>
|
/>
|
||||||
</StyledLink>
|
</StyledLink>
|
||||||
<Header>
|
|
||||||
<Icon icon={icons.T1} size={60} color={colors.TEXT_SECONDARY} />
|
|
||||||
<H3>NEM Wallet</H3>
|
<H3>NEM Wallet</H3>
|
||||||
<P isSmaller>If you enter a wrong passphrase, you will not unlock the desired hidden wallet.</P>
|
<P isSmaller>We have partnered up with the NEM Foundation to provide you with a full-fledged NEM Wallet.</P>
|
||||||
</Header>
|
<H4>Make sure you download the Universal Client for TREZOR support.</H4>
|
||||||
|
<NemImage />
|
||||||
|
<StyledButton>Go to nem.io</StyledButton>
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default Confirmation;
|
NemWallet.propTypes = {
|
||||||
|
onCancel: PropTypes.func.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default NemWallet;
|
Loading…
Reference in New Issue
Block a user