diff --git a/app/component/UploadFile.js b/app/component/UploadFile.js
index d275d2a..997f2c8 100644
--- a/app/component/UploadFile.js
+++ b/app/component/UploadFile.js
@@ -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 (
<>
diff --git a/components/panel/addDoctor/index.js b/components/panel/addDoctor/index.js
index b713eb4..58fa43c 100644
--- a/components/panel/addDoctor/index.js
+++ b/components/panel/addDoctor/index.js
@@ -46,9 +46,13 @@ function AddDoctorPage() {
پروفایل من
-
+
-
{components[value]}
+
{components[value]}
);
diff --git a/components/panel/addDoctor/listMenu/generalInformation/Head.js b/components/panel/addDoctor/listMenu/generalInformation/Head.js
index 54f810a..a220d45 100644
--- a/components/panel/addDoctor/listMenu/generalInformation/Head.js
+++ b/components/panel/addDoctor/listMenu/generalInformation/Head.js
@@ -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 (
-
+
);
}
diff --git a/components/panel/userAccount/account/Head.js b/components/panel/userAccount/account/Head.js
index 286a644..076d97b 100644
--- a/components/panel/userAccount/account/Head.js
+++ b/components/panel/userAccount/account/Head.js
@@ -1,16 +1,11 @@
"use client";
import UploadFile from "@/app/component/UploadFile";
-import { useRef } from "react";
function Head() {
- const fileRef = useRef();
-
- const openInput = () => fileRef.current.click();
-
return (
-
+
);
}