fixing bug in users not showing up
This commit is contained in:
@@ -4,12 +4,14 @@ import {
|
|||||||
ShowModalType,
|
ShowModalType,
|
||||||
useKeyboardContext,
|
useKeyboardContext,
|
||||||
} from "../../contexts/keyboardContext";
|
} from "../../contexts/keyboardContext";
|
||||||
|
import { useTeamDashboardContext } from "../../contexts/teamDashboardContext";
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
|
|
||||||
const thisModalType = ShowModalType.createRoom;
|
const thisModalType = ShowModalType.createRoom;
|
||||||
|
|
||||||
export default function CreateRoomModal() {
|
export default function CreateRoomModal() {
|
||||||
|
const { teamUsers } = useTeamDashboardContext();
|
||||||
const { pastedLink, handleModalType, showModalType } = useKeyboardContext();
|
const { pastedLink, handleModalType, showModalType } = useKeyboardContext();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -303,8 +303,8 @@ export function TeamDashboardContextProvider({ children }) {
|
|||||||
...value,
|
...value,
|
||||||
allMessages,
|
allMessages,
|
||||||
messagesByTeamMate,
|
messagesByTeamMate,
|
||||||
...teamUsers,
|
teamUsers,
|
||||||
...teamUsersMap,
|
teamUsersMap,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user