lbry-desktop/ui/js/modal/modalUpgrade/view.jsx
Jeremy Kauffman 5bec6accc2 mostly done
refactor modals and settings, clean-up CHANGELOG
2017-08-18 17:47:30 -04:00

26 lines
626 B
JavaScript

import React from "react";
import { Modal } from "modal/modal";
class ModalUpgrade extends React.PureComponent {
render() {
const { downloadUpgrade, skipUpgrade } = this.props;
return (
<Modal
isOpen={true}
contentLabel={__("Update available")}
type="confirm"
confirmButtonLabel={__("Upgrade")}
abortButtonLabel={__("Skip")}
onConfirmed={downloadUpgrade}
onAborted={skipUpgrade}
>
{__(
"Your version of LBRY is out of date and may be unreliable or insecure."
)}
</Modal>
);
}
}
export default ModalUpgrade;