mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-01 04:38:15 +00:00
added NemWallet component
This commit is contained in:
parent
41b78390ed
commit
49ca5992fd
49
src/components/modals/external/NemWallet/index.js
vendored
Normal file
49
src/components/modals/external/NemWallet/index.js
vendored
Normal 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;
|
@ -32,6 +32,8 @@ import RememberDevice from 'components/modals/device/Remember';
|
|||||||
import DuplicateDevice from 'components/modals/device/Duplicate';
|
import DuplicateDevice from 'components/modals/device/Duplicate';
|
||||||
import WalletType from 'components/modals/device/WalletType';
|
import WalletType from 'components/modals/device/WalletType';
|
||||||
|
|
||||||
|
import NemWallet from 'components/modals/external/NemWallet';
|
||||||
|
|
||||||
type OwnProps = { }
|
type OwnProps = { }
|
||||||
|
|
||||||
type StateProps = {
|
type StateProps = {
|
||||||
@ -128,6 +130,9 @@ class Modal extends React.PureComponent<Props> {
|
|||||||
component = (<WalletType {...this.props} />);
|
component = (<WalletType {...this.props} />);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'xem':
|
||||||
|
component = (<NemWallet {...this.props} />);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
component = null;
|
component = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user