mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-27 07:23:31 +00:00
38 lines
959 B
JavaScript
38 lines
959 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { Modal } from 'modal/modal';
|
|
import Button from 'component/button';
|
|
|
|
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={__('Quit daemon')}
|
|
abortButtonLabel={__('Do nothing')}
|
|
onConfirmed={quitAnyDaemon}
|
|
onAborted={quit}
|
|
>
|
|
{__(
|
|
'This browser is running with an incompatible version of the LBRY protocol and your install must be repaired. '
|
|
)}
|
|
<Button
|
|
button="link"
|
|
label={__('Learn more')}
|
|
href="https://lbry.io/faq/incompatible-protocol-version"
|
|
/>
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ModalIncompatibleDaemon;
|