From 1fd896bf606cdb3ba63ae379c247c1c272ed3695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cosmin=20P=C3=A2rvulescu?= Date: Fri, 22 Sep 2023 13:50:47 +0300 Subject: [PATCH] Hide UI behind feature flag --- .../routes/__layout/groups/$groupID/index.tsx | 61 ++++++++++--------- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/apps/console/app/routes/__layout/groups/$groupID/index.tsx b/apps/console/app/routes/__layout/groups/$groupID/index.tsx index f4e5e665b2..91f935604f 100644 --- a/apps/console/app/routes/__layout/groups/$groupID/index.tsx +++ b/apps/console/app/routes/__layout/groups/$groupID/index.tsx @@ -58,6 +58,7 @@ import { loader as billingLoader, } from '../../billing/ops' import { process3DSecureCard } from '~/utils/billing' +import { useFeatureFlags } from '@proofzero/design-system/src/hooks/feature-flags' const accountTypes = [ ...Object.values(EmailAccountType), @@ -515,6 +516,8 @@ export default () => { } }, [toastNotification]) + const featureFlags = useFeatureFlags(hydrated) + return ( <> @@ -780,35 +783,37 @@ export default () => { -
-
- - Unassigned User Seats: - - -
- - {`Free ${3 - Math.min(3, group.members.length)}`} + {featureFlags['seats'] && ( +
+
+ + Unassigned User Seats: - - - -
- - {`Purchased ${groupSeats.total - groupSeats.used}`} - -
-
-
- -
-
+ +
+ + {`Free ${3 - Math.min(3, group.members.length)}`} + +
+ + +
+ + {`Purchased ${groupSeats.total - groupSeats.used}`} + +
+
+
+ +
+
+ )}