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

40 lines
1.2 KiB
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 = {
onContinueAnyway: () => void,
2018-05-11 01:06:41 +02:00
quitAnyDaemon: () => void,
};
class ModalIncompatibleDaemon extends React.PureComponent<Props> {
render() {
const { onContinueAnyway, quitAnyDaemon } = this.props;
return (
<Modal
isOpen
2018-09-26 19:48:07 +02:00
title={__('Incompatible Daemon')}
contentLabel={__('Incompatible daemon running')}
type="confirm"
confirmButtonLabel={__('Close App and LBRY Processes')}
abortButtonLabel={__('Continue Anyway')}
onConfirmed={quitAnyDaemon}
onAborted={onContinueAnyway}
>
<div className="card__content">
<p>
{__(
'This app is running with an incompatible version of the LBRY protocol. You can still use it, but there may be issues. Re-run the installation package for best results.'
2019-02-13 17:27:20 +01:00
)}{' '}
2019-05-07 23:38:29 +02:00
<Button button="link" label={__('Learn more')} href="https://lbry.com/faq/incompatible-protocol-version" />.
</p>
</div>
</Modal>
);
}
}
export default ModalIncompatibleDaemon;