mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
26 lines
734 B
JavaScript
26 lines
734 B
JavaScript
import React, { PureComponent } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import AccountListItem from '../../account-list-item';
|
|
import NetworkDisplay from '../../network-display';
|
|
|
|
export default class SignatureRequestHeader extends PureComponent {
|
|
static propTypes = {
|
|
fromAccount: PropTypes.object,
|
|
};
|
|
|
|
render() {
|
|
const { fromAccount } = this.props;
|
|
|
|
return (
|
|
<div className="signature-request-header">
|
|
<div className="signature-request-header--account">
|
|
{fromAccount ? <AccountListItem account={fromAccount} /> : null}
|
|
</div>
|
|
<div className="signature-request-header--network">
|
|
<NetworkDisplay colored={false} />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|