2017-06-06 23:19:12 +02:00
|
|
|
import React from "react";
|
2017-08-18 19:09:40 +02:00
|
|
|
import { Modal } from "modal/modal";
|
2017-10-03 23:52:53 +02:00
|
|
|
import Link from "component/link";
|
2017-04-07 07:15:22 +02:00
|
|
|
|
2017-07-02 20:23:38 +02:00
|
|
|
class ModalUpgrade extends React.PureComponent {
|
2017-04-07 07:15:22 +02:00
|
|
|
render() {
|
2017-06-06 23:19:12 +02:00
|
|
|
const { downloadUpgrade, skipUpgrade } = this.props;
|
2017-04-07 07:15:22 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
isOpen={true}
|
2017-10-03 23:52:53 +02:00
|
|
|
contentLabel={__("Upgrade available")}
|
2017-04-07 07:15:22 +02:00
|
|
|
type="confirm"
|
2017-05-26 22:26:06 +02:00
|
|
|
confirmButtonLabel={__("Upgrade")}
|
|
|
|
abortButtonLabel={__("Skip")}
|
2017-04-07 07:15:22 +02:00
|
|
|
onConfirmed={downloadUpgrade}
|
2017-06-06 23:19:12 +02:00
|
|
|
onAborted={skipUpgrade}
|
|
|
|
>
|
2017-10-10 01:19:50 +02:00
|
|
|
<h3 className="text-center">{__("LBRY Leveled Up")}</h3>
|
2017-10-03 23:52:53 +02:00
|
|
|
<br />
|
|
|
|
<p>
|
|
|
|
{__("An updated version of LBRY is now available.")}
|
|
|
|
{" "}
|
|
|
|
{__("Your version is out of date and may be unreliable or insecure.")}
|
|
|
|
</p>
|
|
|
|
<p className="meta text-center">
|
|
|
|
{__("Want to know what has changed?")}
|
|
|
|
{" "} See the{" "}
|
|
|
|
<Link
|
|
|
|
label={__("release notes")}
|
|
|
|
href="https://github.com/lbryio/lbry-app/releases"
|
|
|
|
/>.
|
|
|
|
</p>
|
2017-04-07 07:15:22 +02:00
|
|
|
</Modal>
|
2017-06-06 23:19:12 +02:00
|
|
|
);
|
2017-04-07 07:15:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-02 20:23:38 +02:00
|
|
|
export default ModalUpgrade;
|