2018-05-11 01:06:41 +02:00
// @flow
2017-12-21 22:08:54 +01:00
import React from 'react' ;
import { Modal } from 'modal/modal' ;
2018-03-26 23:32:43 +02:00
import Button from 'component/button' ;
2017-07-19 23:05:08 +02:00
2018-05-11 01:06:41 +02:00
type Props = {
2019-01-10 02:38:26 +01:00
onContinueAnyway : ( ) => void ,
2018-05-11 01:06:41 +02:00
quitAnyDaemon : ( ) => void ,
} ;
class ModalIncompatibleDaemon extends React . PureComponent < Props > {
2017-07-19 23:05:08 +02:00
render ( ) {
2019-01-10 02:38:26 +01:00
const { onContinueAnyway , quitAnyDaemon } = this . props ;
2017-07-19 23:05:08 +02:00
return (
< Modal
2017-12-21 22:08:54 +01:00
isOpen
2018-09-26 19:48:07 +02:00
title = { _ _ ( 'Incompatible Daemon' ) }
2017-12-21 22:08:54 +01:00
contentLabel = { _ _ ( 'Incompatible daemon running' ) }
2018-03-16 00:04:15 +01:00
type = "confirm"
2019-01-10 02:38:26 +01:00
confirmButtonLabel = { _ _ ( 'Close App and LBRY Processes' ) }
abortButtonLabel = { _ _ ( 'Continue Anyway' ) }
2018-03-16 00:04:15 +01:00
onConfirmed = { quitAnyDaemon }
2019-01-10 02:38:26 +01:00
onAborted = { onContinueAnyway }
2017-07-19 23:05:08 +02:00
>
2019-01-10 02:38:26 +01:00
< 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" / > .
2019-01-10 02:38:26 +01:00
< / p >
< / div >
2017-07-19 23:05:08 +02:00
< / Modal >
) ;
}
}
export default ModalIncompatibleDaemon ;