40 lines
968 B
React
40 lines
968 B
React
|
import React from "react";
|
||
|
import { Modal } from "modal/modal";
|
||
|
import { Line } from "rc-progress";
|
||
|
import Link from "component/link/index";
|
||
|
|
||
|
const { ipcRenderer } = require("electron");
|
||
|
|
||
|
class ModalAutoUpdateConfirm extends React.PureComponent {
|
||
|
render() {
|
||
|
const { closeModal } = this.props;
|
||
|
|
||
|
return (
|
||
|
<Modal
|
||
|
isOpen={true}
|
||
|
type="confirm"
|
||
|
contentLabel={__("Update Downloaded")}
|
||
|
confirmButtonLabel={__("Upgrade")}
|
||
|
abortButtonLabel={__("Now now")}
|
||
|
onConfirmed={() => {
|
||
|
ipcRenderer.send("autoUpdateAccepted");
|
||
|
}}
|
||
|
onAborted={() => {
|
||
|
closeModal();
|
||
|
}}
|
||
|
>
|
||
|
<section>
|
||
|
<h3 className="text-center">{__("LBRY Update Ready")}</h3>
|
||
|
<p>
|
||
|
{__(
|
||
|
'Your LBRY update is ready. Restart LBRY now to use it!'
|
||
|
)}
|
||
|
</p>
|
||
|
</section>
|
||
|
</Modal>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default ModalAutoUpdateConfirm;
|