2017-08-03 00:55:58 +02:00
|
|
|
import React from "react";
|
2017-08-18 19:09:40 +02:00
|
|
|
import { Modal } from "modal/modal";
|
2017-08-03 00:55:58 +02:00
|
|
|
|
|
|
|
class ModalAuthFailure extends React.PureComponent {
|
|
|
|
render() {
|
|
|
|
const { close } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal
|
|
|
|
isOpen={true}
|
|
|
|
contentLabel={__("Unable to Authenticate")}
|
|
|
|
type="confirm"
|
|
|
|
confirmButtonLabel={__("Reload")}
|
|
|
|
abortButtonLabel={__("Continue")}
|
2017-08-18 19:09:40 +02:00
|
|
|
onConfirmed={() => {
|
|
|
|
window.location.reload();
|
|
|
|
}}
|
2017-08-03 00:55:58 +02:00
|
|
|
onAborted={close}
|
|
|
|
>
|
|
|
|
<h3>{__("Authentication Failure")}</h3>
|
2017-08-18 19:09:40 +02:00
|
|
|
<p>
|
|
|
|
{__(
|
|
|
|
"If reloading does not fix this, or you see this at every start up, please email help@lbry.io."
|
|
|
|
)}
|
|
|
|
</p>
|
2017-08-03 00:55:58 +02:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalAuthFailure;
|