update modal initial setup

This commit is contained in:
Arjun Patel
2022-01-17 16:43:11 -08:00
parent d6803686ac
commit 5c931211b2
3 changed files with 43 additions and 12 deletions
@@ -12,11 +12,14 @@ import RoomService from "../../services/roomService";
const { Option } = Select;
const thisModalType = ShowModalType.createRoom;
const roomService = new RoomService();
export default function CreateRoomModal() {
interface IModalProps {
show: boolean;
updateRoom: Room;
}
export default function CreateOrUpdateRoomModal(props: IModalProps) {
const { currUser } = useAuth();
const { teamUsers, team } = useTeamDashboardContext();
const { pastedLink, handleModalType, showModalType } = useKeyboardContext();
@@ -120,7 +123,7 @@ export default function CreateRoomModal() {
<Modal
title="Room Details"
centered
visible={showModalType == thisModalType ? true : false}
visible={props.show}
onOk={handleSubmit}
onCancel={handleCloseModal}
>