Skip to content

Commit

Permalink
jk NOW the mvp is done
Browse files Browse the repository at this point in the history
  • Loading branch information
thaag7734 committed Nov 18, 2024
1 parent 4f6f7e1 commit 62a5715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/TeamsModal/TeamsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function UserDropdown({ boardId }: { boardId: number }) {
const thisRef = useRef<HTMLDivElement | null>(null);
const launchTeamsModal = (e: React.MouseEvent) => {
e.stopPropagation();
setModalContent(<TeamsModal />);
setModalContent(<TeamsModal boardId={boardId} />);
};

useEffect(() => {
Expand Down

0 comments on commit 62a5715

Please sign in to comment.