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.
45 lines
1.0 KiB
45 lines
1.0 KiB
6 years ago
|
/* @flow */
|
||
|
|
||
|
import React, { Component } from 'react';
|
||
|
import { findAccount } from 'reducers/AccountsReducer';
|
||
|
|
||
|
const Wrapper = styled.div`
|
||
|
width: 390px;
|
||
|
`;
|
||
|
|
||
|
const Header = styled.div`
|
||
|
`;
|
||
|
|
||
|
const Content = styled.div`
|
||
|
border-top: 1px solid ${colors.DIVIDER};
|
||
|
background: ${colors.MAIN};
|
||
|
padding: 24px 48px;
|
||
|
`;
|
||
|
|
||
|
const Label = styled.div`
|
||
|
font-size: 10px;
|
||
|
color: ${colors.TEXT_SECONDARY};
|
||
|
`;
|
||
|
|
||
|
const ConfirmAddress = (props: Props) => {
|
||
|
const {
|
||
|
account,
|
||
|
network,
|
||
|
} = props.selectedAccount;
|
||
|
if (!account || !network) return null;
|
||
|
|
||
|
return (
|
||
|
<div className="confirm-address">
|
||
|
<div className="header">
|
||
|
<h3>Confirm address on TREZOR</h3>
|
||
|
<p>Please compare your address on device with address shown bellow.</p>
|
||
|
</div>
|
||
|
<div className="content">
|
||
|
<p>{ account.address }</p>
|
||
|
<label>{ network.symbol } account #{ (account.index + 1) }</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default ConfirmAddress;
|