From d6803686ac9cefe925d8c6c7c8aef45429b74ac2 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 17 Jan 2022 16:24:12 -0800 Subject: [PATCH] Update RoomCard.tsx --- components/RoomCard.tsx | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/components/RoomCard.tsx b/components/RoomCard.tsx index 1810072..0e0d692 100644 --- a/components/RoomCard.tsx +++ b/components/RoomCard.tsx @@ -1,5 +1,5 @@ import { BsThreeDots } from "react-icons/bs"; -import { FaBell, FaClock, FaLink } from "react-icons/fa"; +import { FaBell, FaClock, FaLink, FaPlus } from "react-icons/fa"; import { IoTimer } from "react-icons/io5"; import Room, { RoomStatus } from "../models/room"; import RoomTypeTag from "./RoomTypeTag"; @@ -188,18 +188,18 @@ export default function RoomCard(props: IRoomCardProps) { return ; } + async function handleUpdateRoom(e) { + e.preventDefault(); + + console.log("going to update room"); + } + const RoomOptionsMenu = ( - - - 1st menu item - + + - + Archive Room @@ -257,7 +257,7 @@ export default function RoomCard(props: IRoomCardProps) { {/* room attachments */} - {props.room.attachments && props.room.attachments.length > 0 && ( + {props.room.attachments && props.room.attachments.length > 0 ? ( + ) : ( + )}