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

27 lines
630 B
React
Raw Normal View History

2017-06-06 17:19:12 -04:00
import React from "react";
import { Modal } from "component/modal";
2017-04-07 12:15:22 +07:00
2017-07-02 14:23:38 -04:00
class ModalUpgrade extends React.PureComponent {
2017-04-07 12:15:22 +07:00
render() {
2017-06-06 17:19:12 -04:00
const { downloadUpgrade, skipUpgrade } = this.props;
2017-04-07 12:15:22 +07:00
return (
<Modal
isOpen={true}
2017-05-26 22:26:06 +02:00
contentLabel={__("Update available")}
2017-04-07 12:15:22 +07:00
type="confirm"
2017-05-26 22:26:06 +02:00
confirmButtonLabel={__("Upgrade")}
abortButtonLabel={__("Skip")}
2017-04-07 12:15:22 +07:00
onConfirmed={downloadUpgrade}
2017-06-06 17:19:12 -04:00
onAborted={skipUpgrade}
>
{__(
"Your version of LBRY is out of date and may be unreliable or insecure."
)}
2017-04-07 12:15:22 +07:00
</Modal>
2017-06-06 17:19:12 -04:00
);
2017-04-07 12:15:22 +07:00
}
}
2017-07-02 14:23:38 -04:00
export default ModalUpgrade;