lbry-desktop/ui/js/modal/modalInsufficientBalance/view.jsx

27 lines
668 B
React
Raw Normal View History

2017-08-31 06:15:13 +02:00
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."
2017-08-31 06:15:13 +02:00
)}
</Modal>
);
}
}
export default ModalInsufficientBalance;