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.
37 lines
912 B
37 lines
912 B
/* @flow */
|
|
|
|
|
|
import React from 'react';
|
|
import type { Props } from './index';
|
|
|
|
const Confirmation = (props: Props) => {
|
|
if (!props.modal.opened) return null;
|
|
const { device } = props.modal;
|
|
|
|
const {
|
|
amount,
|
|
address,
|
|
currency,
|
|
total,
|
|
selectedFeeLevel,
|
|
} = props.sendForm;
|
|
|
|
return (
|
|
<div className="confirm-tx">
|
|
<div className="header">
|
|
<h3>Confirm transaction on { device.label } device</h3>
|
|
<p>Details are shown on display</p>
|
|
</div>
|
|
<div className="content">
|
|
<label>Send </label>
|
|
<p>{ `${amount} ${currency}` }</p>
|
|
<label>To</label>
|
|
<p>{ address }</p>
|
|
<label>Fee</label>
|
|
<p>{ selectedFeeLevel.label }</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Confirmation; |