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
+4 -4
View File
@@ -13,9 +13,11 @@ import RoomService from "../services/roomService";
import toast from "react-hot-toast";
import { useState } from "react";
import SkeletonLoader from "./Loading/skeletonLoader";
import { useKeyboardContext } from "../contexts/keyboardContext";
interface IRoomCardProps {
room: Room;
updateRoomHandler: Function;
}
const roomService = new RoomService();
@@ -188,10 +190,8 @@ export default function RoomCard(props: IRoomCardProps) {
return <SkeletonLoader />;
}
async function handleUpdateRoom(e) {
e.preventDefault();
console.log("going to update room");
async function handleUpdateRoom() {
props.updateRoomHandler(props.room.id);
}
const RoomOptionsMenu = (