change components element

This commit is contained in:
Ehsan
2024-10-11 19:48:02 +03:30
parent aef29b5145
commit 0293142d5c
4 changed files with 14 additions and 15 deletions
@@ -1,14 +1,9 @@
import UploadFile from "@/app/component/UploadFile";
import { useRef } from "react";
function Head() {
const fileRef = useRef();
const openInput = () => fileRef.current.click();
return (
<div className="flex items-center justify-center md:justify-start gap-[10px]">
<UploadFile fileRef={fileRef} openInput={openInput} />
<UploadFile />
</div>
);
}