lbry-desktop/ui/modal/modalTransactionFailed/view.jsx

27 lines
643 B
React
Raw Permalink Normal View History

2018-09-26 19:48:07 +02:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
2021-07-19 23:35:37 +02:00
import { SITE_HELP_EMAIL } from 'config';
2017-08-31 06:15:13 +02:00
2018-09-26 19:48:07 +02:00
type Props = {
closeModal: () => void,
};
class ModalTransactionFailed extends React.PureComponent<Props> {
2017-08-31 06:15:13 +02:00
render() {
const { closeModal } = this.props;
return (
2020-08-26 22:28:33 +02:00
<Modal isOpen contentLabel={__('Transaction failed')} title={__('Transaction failed')} onConfirmed={closeModal}>
2021-07-19 23:35:37 +02:00
<p>
2021-07-19 23:39:59 +02:00
{__('Sorry about that. Contact %SITE_HELP_EMAIL% if you continue to have issues.', {
2021-07-19 23:35:37 +02:00
SITE_HELP_EMAIL,
})}
</p>
</Modal>
2017-08-31 06:15:13 +02:00
);
}
}
export default ModalTransactionFailed;