1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-12 09:38:09 +00:00
trezor-wallet/src/components/modals/confirm/Address/index.js
Szymon Lesisz 0cb723b9db flowtype fixes
for all modals
2018-10-09 17:32:56 +02:00

52 lines
1.2 KiB
JavaScript

/* @flow */
import React from 'react';
import styled from 'styled-components';
import H3 from 'components/Heading';
import colors from 'config/colors';
import P from 'components/Paragraph';
import { FONT_SIZE } from 'config/variables';
import type { Props } from '../../index';
const Wrapper = styled.div`
width: 390px;
`;
const Header = styled.div`
padding: 24px 48px;
`;
const Content = styled.div`
border-top: 1px solid ${colors.DIVIDER};
background: ${colors.MAIN};
padding: 24px 48px;
`;
const Label = styled.div`
font-size: ${FONT_SIZE.SMALLER};
color: ${colors.TEXT_SECONDARY};
`;
const ConfirmAddress = (props: Props) => {
const {
account,
network,
} = props.selectedAccount;
if (!account || !network) return null;
return (
<Wrapper>
<Header>
<H3>Confirm address on TREZOR</H3>
<P>Please compare your address on device with address shown bellow.</P>
</Header>
<Content>
<P>{ account.address }</P>
<Label>{ network.symbol } account #{ (account.index + 1) }</Label>
</Content>
</Wrapper>
);
};
export default ConfirmAddress;