diff options
author | Michael Foiani <sotech117@michaels-mbp-5.devices.brown.edu> | 2022-08-03 13:59:21 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-5.devices.brown.edu> | 2022-08-03 13:59:21 -0400 |
commit | f4ad642399fd207909bb8733e431061b30e3cb7d (patch) | |
tree | b8c237f31545f5669f2e60e257eca9ef3236f726 | |
parent | 3f1ffd2fc2f09bd6b5909ae69ef07006750f4436 (diff) |
basic interface for reporting bug
-rw-r--r-- | src/client/util/ReportManager.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/client/util/ReportManager.tsx b/src/client/util/ReportManager.tsx index 49453ae67..b156d7981 100644 --- a/src/client/util/ReportManager.tsx +++ b/src/client/util/ReportManager.tsx @@ -33,6 +33,13 @@ export class ReportManager extends React.Component<{}> { public close = action(() => (this.isOpen = false)); public open = action(() => (this.isOpen = true)); + private bugTitle = ''; + private bugDescription = ''; + + public reportBug() { + console.log('Reporting bug', this.bugTitle, this.bugDescription); + } + private get reportInterface() { return ( @@ -42,7 +49,12 @@ export class ReportManager extends React.Component<{}> { </div> <div className="settings-content"> - content + <h3 style={{ 'textDecoration': 'underline'}}>Report a Bug</h3> + <label>Please leave a title for the bug.</label><br /> + <input type="text" placeholder='title' onChange={(e) => this.bugTitle = e.target.value}/> <br /> + <label>Please leave a description for the bug and how it can be reacreated.</label> + <textarea placeholder='description' onChange={(e) => this.bugDescription = e.target.value}/> <br /><br /> + <button onClick={() => this.reportBug()}>Submit</button> </div> </div> ); |