32 lines
845 B
React
32 lines
845 B
React
|
import React from "react";
|
||
|
import { Modal } from "modal/modal";
|
||
|
import { Line } from "rc-progress";
|
||
|
import Link from "component/link/index";
|
||
|
|
||
|
const { remote } = require("electron");
|
||
|
const { autoUpdater } = remote.require("electron-updater");
|
||
|
|
||
|
class ModalAutoUpdateDownloaded extends React.PureComponent {
|
||
|
render() {
|
||
|
return (
|
||
|
<Modal
|
||
|
isOpen={true}
|
||
|
contentLabel={__("Update downloaded")}
|
||
|
confirmButtonLabel={__("Update and Restart")}
|
||
|
onConfirmed={autoUpdater.quitAndInstall()}
|
||
|
>
|
||
|
<section>
|
||
|
<h3 className="text-center">{__("LBRY Leveled Up")}</h3>
|
||
|
<p>
|
||
|
{__(
|
||
|
"A new version of LBRY has been downloaded and is ready to install."
|
||
|
)}
|
||
|
</p>
|
||
|
</section>
|
||
|
</Modal>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default ModalAutoUpdateDownloaded;
|