fixing archived rooms ui

This commit is contained in:
Arjun Patel
2022-01-22 01:17:15 -08:00
parent 07ea475dfe
commit 442b5c5bf4
3 changed files with 125 additions and 15 deletions
+14 -10
View File
@@ -294,16 +294,20 @@ export default function DashboardRoom() {
</>
);
case RoomTypeFilter.archived:
return archivedRooms.map((room) => {
// if the room is
return (
<RoomCard
key={room.id}
room={room}
updateRoomHandler={handleUpdateRoom}
/>
);
});
return (
<span className="flex flex-col space-y-5 px-10">
{archivedRooms.map((room) => {
// if the room is
return (
<RoomCard
key={room.id}
room={room}
updateRoomHandler={handleUpdateRoom}
/>
);
})}
</span>
);
default:
return allRooms.map((room) => {
// if the room is