import React from "react"; import Link from "component/link"; import { FormRow } from "component/form"; import Modal from "../component/modal.js"; import lbry from "../lbry.js"; class ReportPage extends React.Component { constructor(props) { super(props); this.state = { submitting: false, modal: null, }; } submitMessage() { if (this._messageArea.value) { this.setState({ submitting: true, }); lbry.reportBug(this._messageArea.value, () => { this.setState({ submitting: false, modal: "submitted", }); }); this._messageArea.value = ""; } } closeModal() { this.setState({ modal: null, }); } render() { return (

{__("Report an Issue")}

{__( "Please describe the problem you experienced and any information you think might be useful to us. Links to screenshots are great!" )}

(this._messageArea = t)} rows="10" name="message" placeholder={__("Description of your issue")} />

{__("Developer?")}

{__("You can also")} {" "} .
{ this.closeModal(event); }} > {__( "Your bug report has been submitted! Thank you for your feedback." )}
); } } export default ReportPage;