From d207d280eef6f4e4f8851ccd554eb0f05e4075bb Mon Sep 17 00:00:00 2001
From: Nishant Kaushal <101548649+nishant0708@users.noreply.github.com>
Date: Tue, 6 Aug 2024 02:08:42 +0530
Subject: [PATCH 1/2] fixed
---
src/pages/EditProfile.jsx | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
diff --git a/src/pages/EditProfile.jsx b/src/pages/EditProfile.jsx
index ed96373..95294cc 100644
--- a/src/pages/EditProfile.jsx
+++ b/src/pages/EditProfile.jsx
@@ -10,13 +10,13 @@ import {
FaInstagram,
FaFacebook,
} from "react-icons/fa";
-import { CiFacebook } from "react-icons/ci";
import AddSocialMediaModal from "../components/AddSocialMediaModal";
+
const EditProfile = () => {
const { _id } = useParams(); // Assuming you have canteen ID in the URL
const navigate = useNavigate(); // useNavigate hook for navigation
- const [edit, setEditable] = useState(false);
const [editName, setEditName] = useState(false);
+ const [editable, setEditable] = useState(false);
const [editEmail, setEditEmail] = useState(false);
const [editCollegeName, setEditCollegeName] = useState(false);
const [editImage, setEditImage] = useState(false);
@@ -67,7 +67,7 @@ const EditProfile = () => {
useEffect(() => {
fetchCanteenData();
- }, [_id, handleSocialMediaLinks]);
+ }, [_id]);
const handleChange = (e) => {
const { name, value } = e.target;
@@ -203,10 +203,6 @@ const EditProfile = () => {
-
-
-
-
)}
- {/* {!edit && (
-
- )} */}
-
<>