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

27 lines
671 B
React
Raw Normal View History

2017-07-27 22:15:13 +02:00
import React from "react";
import { Modal } from "component/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 1 LBC in your wallet."
)}
</Modal>
);
}
}
export default ModalInsufficientBalance;