1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 23:58:06 +01:00
metamask-extension/ui/components/app/signature-request/signature-request-footer/signature-request-footer.component.js

30 lines
746 B
JavaScript

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { PageContainerFooter } from '../../../ui/page-container';
export default class SignatureRequestFooter extends PureComponent {
static propTypes = {
cancelAction: PropTypes.func.isRequired,
signAction: PropTypes.func.isRequired,
disabled: PropTypes.bool,
};
static contextTypes = {
t: PropTypes.func,
};
render() {
const { cancelAction, signAction, disabled = false } = this.props;
return (
<PageContainerFooter
cancelText={this.context.t('reject')}
submitText={this.context.t('sign')}
onCancel={cancelAction}
onSubmit={signAction}
disabled={disabled}
/>
);
}
}