2021-02-04 19:15:23 +01:00
|
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import Button from '../../../ui/button';
|
2019-11-04 13:40:46 +01:00
|
|
|
|
|
|
|
export default class SignatureRequestFooter extends PureComponent {
|
|
|
|
static propTypes = {
|
|
|
|
cancelAction: PropTypes.func.isRequired,
|
|
|
|
signAction: PropTypes.func.isRequired,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-04 13:40:46 +01:00
|
|
|
|
|
|
|
static contextTypes = {
|
|
|
|
t: PropTypes.func,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2019-11-04 13:40:46 +01:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { cancelAction, signAction } = this.props;
|
2019-11-04 13:40:46 +01:00
|
|
|
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>
|
2019-11-04 13:40:46 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2019-11-04 13:40:46 +01:00
|
|
|
}
|
|
|
|
}
|