1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 12:47:14 +01:00
metamask-extension/ui/components/app/signature-request/signature-request-footer/signature-request-footer.component.js

29 lines
746 B
JavaScript
Raw Normal View History

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Button from '../../../ui/button';
export default class SignatureRequestFooter extends PureComponent {
static propTypes = {
cancelAction: PropTypes.func.isRequired,
signAction: PropTypes.func.isRequired,
};
static contextTypes = {
t: PropTypes.func,
};
2020-11-03 00:41:28 +01:00
render() {
const { cancelAction, signAction } = this.props;
return (
<div className="signature-request-footer">
2020-11-03 00:41:28 +01:00
<Button onClick={cancelAction} type="default" large>
{this.context.t('cancel')}
</Button>
<Button onClick={signAction} type="primary" large>
{this.context.t('sign')}
</Button>
</div>
);
}
}