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
+6 -1
View File
@@ -1,10 +1,15 @@
"use client";
import { useRef } from "react";
import { Button } from "@mui/material";
import ProfileP from "@/components/icons/ProfileP";
import ArrowLeftPU from "@/components/icons/ArrowLeftPU";
function UploadFile({ fileRef, openInput }) {
function UploadFile() {
const fileRef = useRef();
const openInput = () => fileRef.current.click();
return (
<>
<input className="contents" ref={fileRef} type="file" />