Spaces:
Running
Running
Commit ·
e6559cd
1
Parent(s): c7187e1
commit 017
Browse files
src/components/FileUpload.jsx
CHANGED
|
@@ -19,13 +19,13 @@ export default function FileUpload({ onCodeParsed }) {
|
|
| 19 |
|
| 20 |
return (
|
| 21 |
<div className="file-upload">
|
| 22 |
-
|
| 23 |
type="file"
|
| 24 |
accept=".js,.ts,.py,.java,.json,.txt"
|
| 25 |
ref={inputRef}
|
| 26 |
className="hidden"
|
| 27 |
onChange={handleFile}
|
| 28 |
-
/>
|
| 29 |
<button onClick={() => inputRef.current.click()}>
|
| 30 |
Upload Code File
|
| 31 |
</button>
|
|
|
|
| 19 |
|
| 20 |
return (
|
| 21 |
<div className="file-upload">
|
| 22 |
+
<input
|
| 23 |
type="file"
|
| 24 |
accept=".js,.ts,.py,.java,.json,.txt"
|
| 25 |
ref={inputRef}
|
| 26 |
className="hidden"
|
| 27 |
onChange={handleFile}
|
| 28 |
+
/>
|
| 29 |
<button onClick={() => inputRef.current.click()}>
|
| 30 |
Upload Code File
|
| 31 |
</button>
|