lbry-desktop/src/renderer/modal/modalIncompatibleDaemon/view.jsx

39 lines
1,010 B
React
Raw Normal View History

2018-05-11 01:06:41 +02:00
// @flow
import React from 'react';
import { Modal } from 'modal/modal';
2018-03-26 23:32:43 +02:00
import Button from 'component/button';
2018-05-11 01:06:41 +02:00
type Props = {
quit: () => void,
quitAnyDaemon: () => void,
};
class ModalIncompatibleDaemon extends React.PureComponent<Props> {
render() {
const { quit, quitAnyDaemon } = this.props;
return (
<Modal
isOpen
contentLabel={__('Incompatible daemon running')}
type="confirm"
confirmButtonLabel={__('Close LBRY and daemon')}
abortButtonLabel={__('Do nothing')}
onConfirmed={quitAnyDaemon}
onAborted={quit}
>
{__(
2018-07-20 22:54:10 +02:00
'This browser is running with an incompatible version of the LBRY protocol, please close the LBRY app and rerun the installation package to repair it. '
)}
2018-05-11 01:06:41 +02:00
<Button
button="link"
label={__('Learn more')}
href="https://lbry.io/faq/incompatible-protocol-version"
/>
</Modal>
);
}
}
export default ModalIncompatibleDaemon;