From 0b8e2ea98d8929035a0019e64b0da952f1768229 Mon Sep 17 00:00:00 2001 From: Kanishk Sachdev Date: Thu, 23 Oct 2025 12:48:08 -0400 Subject: [PATCH] Add room reservation feature flag check in profile page --- src/app/(protected)/profile/page.tsx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/app/(protected)/profile/page.tsx b/src/app/(protected)/profile/page.tsx index a05caa93..5deb6346 100644 --- a/src/app/(protected)/profile/page.tsx +++ b/src/app/(protected)/profile/page.tsx @@ -113,8 +113,9 @@ export default function Profile() { const [showResumeModal, setShowResumeModal] = useState(false); const [resumeFile, setResumeFile] = useState(null); - // Feature flag check for HelpDesk + // Feature flag checks const { data: helpDeskFlag } = useFlagState("HelpDesk"); + const { data: roomReservationFlag } = useFlagState("RoomReservation"); // Check if user is an organizer (role > 0) const userRole = getUserRole(token); @@ -502,16 +503,18 @@ export default function Profile() { Manage Team - + {roomReservationFlag?.isEnabled && ( + + )} ) : ( <>