Spaces:
Running
Running
Commit ·
7ec2600
1
Parent(s): 70cfb15
commit 02111111212
Browse files- src/App.js +4 -4
src/App.js
CHANGED
|
@@ -52,7 +52,7 @@ export default function App() {
|
|
| 52 |
|
| 53 |
const handleExplain = () => {
|
| 54 |
//if (lastCode) handleSend(`Explain this code:\n\n${lastCode}`);
|
| 55 |
-
if (lastCode)
|
| 56 |
};
|
| 57 |
|
| 58 |
const handleFixBug = () => {
|
|
@@ -60,9 +60,9 @@ export default function App() {
|
|
| 60 |
if (lastCode) handleSend("Fix the bug in this code and explain");
|
| 61 |
};
|
| 62 |
|
| 63 |
-
const handleStackOverflow = () => {
|
| 64 |
-
|
| 65 |
-
};
|
| 66 |
|
| 67 |
return (
|
| 68 |
<div className="app">
|
|
|
|
| 52 |
|
| 53 |
const handleExplain = () => {
|
| 54 |
//if (lastCode) handleSend(`Explain this code:\n\n${lastCode}`);
|
| 55 |
+
if (lastCode)handleSend("Explain this code");
|
| 56 |
};
|
| 57 |
|
| 58 |
const handleFixBug = () => {
|
|
|
|
| 60 |
if (lastCode) handleSend("Fix the bug in this code and explain");
|
| 61 |
};
|
| 62 |
|
| 63 |
+
// const handleStackOverflow = () => {
|
| 64 |
+
// if (lastCode) handleSend(`Search StackOverflow for this issue:\n\n${lastCode}`);
|
| 65 |
+
// };
|
| 66 |
|
| 67 |
return (
|
| 68 |
<div className="app">
|