mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
add placeholder for error handling
This commit is contained in:
parent
7bfb045c4f
commit
33a0be0e35
1 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,12 @@ const StudioReport = ({
|
|||
const handleChange = event => handleSetField(event.target.value);
|
||||
return (
|
||||
<div>
|
||||
{error && (
|
||||
<div>
|
||||
<div>There was an error. Try again later?</div>
|
||||
<div><code><pre>{error}</pre></code></div>
|
||||
</div>
|
||||
)}
|
||||
{canReport && (
|
||||
<button onClick={handleOpen}><FormattedMessage id="general.report" /></button>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue