From 4095cbe52d1b49bdedb388f081fa42a522533dc3 Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Wed, 15 May 2024 17:39:59 +0200 Subject: [PATCH] feat: manage view of rooms for moderators and users --- ts/Manager/RoomRow.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/Manager/RoomRow.tsx b/ts/Manager/RoomRow.tsx index 27ef1d3..c8fce33 100644 --- a/ts/Manager/RoomRow.tsx +++ b/ts/Manager/RoomRow.tsx @@ -194,7 +194,7 @@ const RoomRow: React.FC = (props) => { return ; } - function edit(field: string, type: 'text' | 'number' = 'text', canEdit = true, options?) { + function edit(field: string, type: 'text' | 'number' = 'text', canEdit: boolean = true, options?) { return canEdit ? : @@ -265,7 +265,9 @@ const RoomRow: React.FC = (props) => { } - {} + {adminRoom && + + }