FrederickSundeep commited on
Commit
762231c
·
1 Parent(s): 7df1b93

commit 0211

Browse files
Files changed (1) hide show
  1. src/components/FileUpload.jsx +1 -1
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