From 62a5715f7451d7d55e198ef3fbc7646472944595 Mon Sep 17 00:00:00 2001 From: thaag7734 Date: Mon, 18 Nov 2024 03:03:35 -0500 Subject: [PATCH] jk NOW the mvp is done --- frontend/src/components/TeamsModal/TeamsModal.tsx | 3 +-- frontend/src/components/top_nav/user_dropdown/UserDropdown.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/TeamsModal/TeamsModal.tsx b/frontend/src/components/TeamsModal/TeamsModal.tsx index 4119826..11af325 100644 --- a/frontend/src/components/TeamsModal/TeamsModal.tsx +++ b/frontend/src/components/TeamsModal/TeamsModal.tsx @@ -7,8 +7,7 @@ import { FaTrash } from "react-icons/fa"; import "./TeamsModal.css"; import { type ModalContextType, useModal } from "../Modal/Modal"; -export default function TeamsModal() { - const boardId = useAppSelector((state) => state.session.currentBoardId); +export default function TeamsModal({ boardId }: { boardId: number }) { const team = useAppSelector((state) => state.team?.team); const user = useAppSelector((state) => state.session.user); diff --git a/frontend/src/components/top_nav/user_dropdown/UserDropdown.tsx b/frontend/src/components/top_nav/user_dropdown/UserDropdown.tsx index 102f906..57febbf 100644 --- a/frontend/src/components/top_nav/user_dropdown/UserDropdown.tsx +++ b/frontend/src/components/top_nav/user_dropdown/UserDropdown.tsx @@ -32,7 +32,7 @@ export default function UserDropdown({ boardId }: { boardId: number }) { const thisRef = useRef(null); const launchTeamsModal = (e: React.MouseEvent) => { e.stopPropagation(); - setModalContent(); + setModalContent(); }; useEffect(() => {