1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-11 04:07:13 +01:00
metamask-extension/ui/components/app/signature-request/signature-request-header/signature-request-header.component.js

33 lines
902 B
JavaScript
Raw Normal View History

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,
};
2020-11-03 00:41:28 +01:00
render() {
const { fromAccount } = this.props;
return (
<div className="signature-request-header">
<div className="signature-request-header--account">
{fromAccount ? (
<AccountListItem
account={fromAccount}
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
hideDefaultMismatchWarning
///: END:ONLY_INCLUDE_IN
/>
) : null}
</div>
<div className="signature-request-header--network">
<NetworkDisplay />
</div>
</div>
);
}
}