2017-07-19 23:05:08 +02:00
|
|
|
import React from "react";
|
2017-08-18 19:09:40 +02:00
|
|
|
import { Modal } from "modal/modal";
|
|
|
|
import Link from "component/link/index";
|
2017-07-19 23:05:08 +02:00
|
|
|
|
|
|
|
class ModalIncompatibleDaemon extends React.PureComponent {
|
|
|
|
render() {
|
2017-07-29 21:22:17 +02:00
|
|
|
const { quit } = this.props;
|
2017-07-19 23:05:08 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
isOpen={true}
|
|
|
|
contentLabel={__("Incompatible daemon running")}
|
|
|
|
type="alert"
|
2017-07-29 21:22:17 +02:00
|
|
|
confirmButtonLabel={__("Quit")}
|
|
|
|
onConfirmed={quit}
|
2017-07-19 23:05:08 +02:00
|
|
|
>
|
|
|
|
{__(
|
2017-07-29 21:22:17 +02:00
|
|
|
"This browser is running with an incompatible version of the LBRY protocol and your install must be repaired. "
|
2017-07-19 23:05:08 +02:00
|
|
|
)}
|
2017-07-29 21:22:17 +02:00
|
|
|
<Link
|
|
|
|
label={__("Learn more")}
|
|
|
|
href="https://lbry.io/faq/incompatible-protocol-version"
|
|
|
|
/>
|
2017-07-19 23:05:08 +02:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalIncompatibleDaemon;
|