mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.4 KiB
61 lines
1.4 KiB
/* @flow */
|
|
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styled from 'styled-components';
|
|
import { Button, H5, Link, P, Icon, icons, colors } from 'trezor-ui-components';
|
|
import coins from 'constants/coins';
|
|
|
|
import TezosImage from './images/xtz.png';
|
|
import type { Props as BaseProps } from '../../Container';
|
|
|
|
type Props = {
|
|
onCancel: $ElementType<$ElementType<BaseProps, 'modalActions'>, 'onCancel'>,
|
|
};
|
|
|
|
const Wrapper = styled.div`
|
|
width: 100%;
|
|
max-width: 620px;
|
|
padding: 30px 48px;
|
|
`;
|
|
|
|
const StyledButton = styled(Button)`
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
`;
|
|
|
|
const StyledLink = styled(Link)`
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 10px;
|
|
`;
|
|
|
|
const Img = styled.img`
|
|
display: block;
|
|
max-width: 100px;
|
|
margin: 0 auto;
|
|
height: auto;
|
|
padding-bottom: 20px;
|
|
`;
|
|
|
|
const TezosWallet = (props: Props) => (
|
|
<Wrapper>
|
|
<StyledLink onClick={props.onCancel}>
|
|
<Icon size={12} color={colors.TEXT_SECONDARY} icon={icons.CLOSE} />
|
|
</StyledLink>
|
|
<Img src={TezosImage} />
|
|
<H5>Tezos wallet</H5>
|
|
<P isSmaller>You will be redirected to external wallet</P>
|
|
|
|
<Link href={coins.find(i => i.id === 'xtz').url}>
|
|
<StyledButton onClick={props.onCancel}>Go to external wallet</StyledButton>
|
|
</Link>
|
|
</Wrapper>
|
|
);
|
|
|
|
TezosWallet.propTypes = {
|
|
onCancel: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default TezosWallet;
|