Spaces:
Running
Running
Commit ·
762231c
1
Parent(s): 7df1b93
commit 0211
Browse files
src/components/FileUpload.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import React, { useEffect, useState, useRef } from "react";
|
| 2 |
|
| 3 |
-
export default function FileUpload({ onCodeParsed }) {
|
| 4 |
const [preview, setPreview] = useState(null);
|
| 5 |
const inputRef = useRef(null); // ✅ create the ref
|
| 6 |
|
|
|
|
| 1 |
import React, { useEffect, useState, useRef } from "react";
|
| 2 |
|
| 3 |
+
export default function FileUpload({ onCodeParsed, reset }) {
|
| 4 |
const [preview, setPreview] = useState(null);
|
| 5 |
const inputRef = useRef(null); // ✅ create the ref
|
| 6 |
|