lbry-desktop/src/renderer/modal/modalAutoUpdateDownloaded/view.jsx
Thomas Zarebczan 305d1a4a48 lbry-app > lbry-desktop
Reviewed all instances of lbry-app and changed to lbr-desktop. There are still some that will stay at lby-app for now (i.e. AUR/Flatpak repo names).
2018-07-12 14:39:12 -04:00

47 lines
1.3 KiB
JavaScript

import React from 'react';
import { ipcRenderer } from 'electron';
import { Modal } from 'modal/modal';
import Button from 'component/button';
class ModalAutoUpdateDownloaded extends React.PureComponent {
render() {
const { closeModal, declineAutoUpdate } = this.props;
return (
<Modal
isOpen
type="confirm"
contentLabel={__('Update Downloaded')}
confirmButtonLabel={__('Use it Now')}
abortButtonLabel={__('Upgrade on Close')}
onConfirmed={() => {
ipcRenderer.send('autoUpdateAccepted');
}}
onAborted={() => {
declineAutoUpdate();
ipcRenderer.send('autoUpdateDeclined');
closeModal();
}}
>
<section>
<h3 className="text-center">{__('LBRY Leveled Up')}</h3>
<p>
{__(
'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.'
)}
</p>
<p className="meta text-center">
{__('Want to know what has changed?')} See the{' '}
<Button
button="link"
label={__('release notes')}
href="https://github.com/lbryio/lbry-desktop/releases"
/>.
</p>
</section>
</Modal>
);
}
}
export default ModalAutoUpdateDownloaded;