lbry-desktop/ui/js/component/upgradeModal/view.jsx

33 lines
675 B
React
Raw Normal View History

2017-04-07 07:15:22 +02:00
import React from 'react'
import {
Modal
} from 'component/modal'
import {
downloadUpgrade,
skipUpgrade
} from 'actions/app'
class UpgradeModal extends React.Component {
render() {
const {
downloadUpgrade,
skipUpgrade
} = this.props
return (
<Modal
isOpen={true}
2017-05-26 22:26:06 +02:00
contentLabel={__("Update available")}
2017-04-07 07:15:22 +02:00
type="confirm"
2017-05-26 22:26:06 +02:00
confirmButtonLabel={__("Upgrade")}
abortButtonLabel={__("Skip")}
2017-04-07 07:15:22 +02:00
onConfirmed={downloadUpgrade}
onAborted={skipUpgrade}>
2017-05-26 22:26:06 +02:00
{__("Your version of LBRY is out of date and may be unreliable or insecure.")}
2017-04-07 07:15:22 +02:00
</Modal>
)
}
}
export default UpgradeModal