import React, { Fragment } from 'react'; import Button from 'component/button'; import { FormField } from 'component/common/form'; import { doToast } from 'redux/actions/notifications'; import { Lbryio } from 'lbryinc'; import Page from 'component/page'; import Card from 'component/common/card'; import I18nMessage from 'component/i18nMessage'; class ReportPage extends React.Component { constructor(props) { super(props); this.state = { submitting: false, message: '', }; } onMessageChange(event) { this.setState({ message: event.target.value, }); } submitMessage() { const { message } = this.state; if (message) { this.setState({ submitting: true, }); Lbryio.call('event', 'desktop_error', { error_message: message }).then(() => { this.setState({ submitting: false, }); // Display global notice const action = doToast({ message: __('Message received! Thanks for helping.'), }); window.app.store.dispatch(action); }); this.setState({ message: '' }); } } render() { return (
{ this.onMessageChange(event); }} placeholder={__('Description of your issue or feature request')} />
} />

{__('You can also:')}

  • ), }} > Explore our %technical_resources% .
  • , }} > Join our %tech_forum% .
} />
); } } export default ReportPage;