diff --git a/components/ImageWithFallback.tsx b/components/ImageWithFallback.tsx
deleted file mode 100644
index 44c6f81..0000000
--- a/components/ImageWithFallback.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { ReactNode, useState } from "react";
-
-type Props = {
- src: string;
- className: string;
- children: ReactNode;
-};
-
-const ImageWithFallback = ({ src, className, children, ...rest }: Props) => {
- const [error, setError] = useState(false);
-
- return error ? (
- <>{children}>
- ) : (
- {
- setError(true);
- }}
- />
- );
-};
-
-export default ImageWithFallback;
diff --git a/components/Modal/Collection/TeamManagement.tsx b/components/Modal/Collection/TeamManagement.tsx
index e9e3da5..0cba34d 100644
--- a/components/Modal/Collection/TeamManagement.tsx
+++ b/components/Modal/Collection/TeamManagement.tsx
@@ -3,16 +3,15 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faClose,
faPenToSquare,
- faUser,
faUserPlus,
} from "@fortawesome/free-solid-svg-icons";
import useCollectionStore from "@/store/collections";
import { CollectionIncludingMembers, Member } from "@/types/global";
import { useSession } from "next-auth/react";
import addMemberToCollection from "@/lib/client/addMemberToCollection";
-import ImageWithFallback from "../../ImageWithFallback";
import Checkbox from "../../Checkbox";
import SubmitButton from "@/components/SubmitButton";
+import ProfilePhoto from "@/components/ProfilePhoto";
type Props = {
toggleCollectionModal: Function;
@@ -186,15 +185,7 @@ export default function TeamManagement({
}}
/>
{e.user.name} diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 23f3652..e4927c0 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -16,6 +16,7 @@ import { useRouter } from "next/router"; import Search from "@/components/Search"; import UserSettings from "./Modal/UserSettings"; import useAccountStore from "@/store/account"; +import ProfilePhoto from "./ProfilePhoto"; export default function () { const { account } = useAccountStore(); @@ -71,27 +72,17 @@ export default function () {