2021-02-04 19:15:23 +01:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import AccountListItem from '../../account-list-item';
|
|
|
|
import NetworkDisplay from '../../network-display';
|
2019-11-04 13:40:46 +01:00
|
|
|
|
|
|
|
export default class SignatureRequestHeader extends PureComponent {
|
|
|
|
static propTypes = {
|
2020-04-15 16:41:34 +02:00
|
|
|
fromAccount: PropTypes.object,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-04 13:40:46 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { fromAccount } = this.props;
|
2019-11-04 13:40:46 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="signature-request-header">
|
|
|
|
<div className="signature-request-header--account">
|
2021-10-21 18:11:31 +02:00
|
|
|
{fromAccount ? <AccountListItem account={fromAccount} /> : null}
|
2019-11-04 13:40:46 +01:00
|
|
|
</div>
|
|
|
|
<div className="signature-request-header--network">
|
|
|
|
<NetworkDisplay colored={false} />
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-04 13:40:46 +01:00
|
|
|
}
|
|
|
|
}
|