1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 11:18:16 +00:00

added NemWallet component

This commit is contained in:
Szymon Lesisz 2018-10-10 21:50:20 +02:00
parent 41b78390ed
commit 49ca5992fd
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,49 @@
/* @flow */
import React from 'react';
import styled from 'styled-components';
import colors from 'config/colors';
import icons from 'config/icons';
import Icon from 'components/Icon';
import Link from 'components/Link';
import { H3 } from 'components/Heading';
import P from 'components/Paragraph';
import type { Props } from 'components/modals/index';
const Wrapper = styled.div`
width: 360px;
padding: 24px 48px;
`;
const Header = styled.div``;
const StyledLink = styled(Link)`
position: absolute;
right: 15px;
top: 10px;
`;
const Confirmation = (props: Props) => {
const { onCancel } = props.modalActions;
return (
<Wrapper>
<StyledLink onClick={onCancel}>
<Icon
size={20}
color={colors.TEXT_SECONDARY}
icon={icons.CLOSE}
/>
</StyledLink>
<Header>
<Icon icon={icons.T1} size={60} color={colors.TEXT_SECONDARY} />
<H3>NEM Wallet</H3>
<P isSmaller>If you enter a wrong passphrase, you will not unlock the desired hidden wallet.</P>
</Header>
</Wrapper>
);
};
export default Confirmation;

View File

@ -32,6 +32,8 @@ import RememberDevice from 'components/modals/device/Remember';
import DuplicateDevice from 'components/modals/device/Duplicate';
import WalletType from 'components/modals/device/WalletType';
import NemWallet from 'components/modals/external/NemWallet';
type OwnProps = { }
type StateProps = {
@ -128,6 +130,9 @@ class Modal extends React.PureComponent<Props> {
component = (<WalletType {...this.props} />);
break;
case 'xem':
component = (<NemWallet {...this.props} />);
break;
default:
component = null;
}