You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
746 B
29 lines
746 B
4 years ago
|
import React, { PureComponent } from 'react';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import Button from '../../../ui/button';
|
||
5 years ago
|
|
||
|
export default class SignatureRequestFooter extends PureComponent {
|
||
|
static propTypes = {
|
||
|
cancelAction: PropTypes.func.isRequired,
|
||
|
signAction: PropTypes.func.isRequired,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
|
static contextTypes = {
|
||
|
t: PropTypes.func,
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
4 years ago
|
render() {
|
||
4 years ago
|
const { cancelAction, signAction } = this.props;
|
||
5 years ago
|
return (
|
||
|
<div className="signature-request-footer">
|
||
4 years ago
|
<Button onClick={cancelAction} type="default" large>
|
||
|
{this.context.t('cancel')}
|
||
|
</Button>
|
||
|
<Button onClick={signAction} type="primary" large>
|
||
|
{this.context.t('sign')}
|
||
|
</Button>
|
||
5 years ago
|
</div>
|
||
4 years ago
|
);
|
||
5 years ago
|
}
|
||
|
}
|