26 lines
668 B
JavaScript
26 lines
668 B
JavaScript
import React from "react";
|
|
import { Modal } from "modal/modal";
|
|
|
|
class ModalInsufficientBalance extends React.PureComponent {
|
|
render() {
|
|
const { addBalance, closeModal } = this.props;
|
|
|
|
return (
|
|
<Modal
|
|
isOpen={true}
|
|
type="confirm"
|
|
contentLabel={__("Not enough credits")}
|
|
confirmButtonLabel={__("Get Credits")}
|
|
abortButtonLabel={__("Cancel")}
|
|
onAborted={closeModal}
|
|
onConfirmed={addBalance}
|
|
>
|
|
{__(
|
|
"Insufficient balance: after this transaction you would have less than 0 LBCs in your wallet."
|
|
)}
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ModalInsufficientBalance;
|