From e38d6534cc4920ec7c53955ec45d73248554e6c5 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Wed, 19 Jan 2022 16:18:00 -0800 Subject: [PATCH] Update Rooms.tsx --- components/Dashboard/Rooms.tsx | 35 +++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/components/Dashboard/Rooms.tsx b/components/Dashboard/Rooms.tsx index 523bc3a..a9b726c 100644 --- a/components/Dashboard/Rooms.tsx +++ b/components/Dashboard/Rooms.tsx @@ -21,9 +21,10 @@ import { Collections } from "../../services/collections"; import { useTeamDashboardContext } from "../../contexts/teamDashboardContext"; import Room, { RoomStatus, RoomType } from "../../models/room"; import { useAuth } from "../../contexts/authContext"; -import { Dropdown, Menu, Radio, Tooltip } from "antd"; +import { Divider, Dropdown, Menu, Radio, Tooltip } from "antd"; import RoomCard from "../RoomCard"; import toast from "react-hot-toast"; +import RoomTypeTag from "../RoomTypeTag"; enum RoomTypeFilter { team = "team", @@ -177,12 +178,18 @@ export default function DashboardRoom() { ); const now = meRooms.filter((room) => room.status == RoomStatus.live); const scheduled = meRooms.filter( - (room) => room.type == RoomType.scheduled + (room) => + room.type == RoomType.scheduled && room.status == RoomStatus.empty ); return ( <> - Live + + +
{now.map((room) => ( - Scheduled + + + + + + + Your next room is in{" "} + 20 minutes +
{scheduled.map((room) => ( - Recurring + + + + +
{recurring.map((room) => (