diff --git a/src/components/OurTeam/OurTeam.jsx b/src/components/OurTeam/OurTeam.jsx
index 3c47672..8106cbc 100644
--- a/src/components/OurTeam/OurTeam.jsx
+++ b/src/components/OurTeam/OurTeam.jsx
@@ -1,7 +1,7 @@
-import React from "react";
+import Image from "next/image";
import Link from "next/link";
+import React from "react";
import { FaGithub, FaLinkedin } from "react-icons/fa";
-import Image from "next/image";
export default function OurTeam({ t }) {
const data = [
{
@@ -85,6 +85,7 @@ export default function OurTeam({ t }) {
width={100}
height={100}
className='w-32 h-32 border-[#575885] image border-2 rounded-full'
+ alt='profile picture'
/>
{t(`${name}`)}
diff --git a/src/components/OurTeam/__test__/__snapshots__/OurTeam.test.js.snap b/src/components/OurTeam/__test__/__snapshots__/OurTeam.test.js.snap
index 8819e6c..59ff85a 100644
--- a/src/components/OurTeam/__test__/__snapshots__/OurTeam.test.js.snap
+++ b/src/components/OurTeam/__test__/__snapshots__/OurTeam.test.js.snap
@@ -28,6 +28,7 @@ exports[`renders correctly 1`] = `
className="flex justify-center items-center"
>
{
const [userInfo, setUserInfo] = useState(null);
const [collapsed, setCollapsed] = useState(false);
const { currentUser, logout } = useAuth();
+ const [loading, setLoading] = useState(false);
const route = useRouter();
useEffect(() => {
@@ -87,6 +89,7 @@ const Sidebar = ({ t }) => {
if (file) {
try {
+ setLoading(true);
// Create a reference to the storage location
const storageRef = ref(
storage,
@@ -109,12 +112,13 @@ const Sidebar = ({ t }) => {
setUserInfo({ ...userInfo, photoURL: imageUrl });
} catch (error) {
console.error("Error updating profile image:", error);
+ } finally {
+ // Set loading back to false when the image upload is complete
+ setLoading(false);
}
}
};
- console.log(currentUser?.photoURL);
-
return (
{
)}
-