From aa01436f0d6bd28db594b466602cb2f91905152f Mon Sep 17 00:00:00 2001 From: giancarlo Date: Fri, 10 May 2024 00:39:48 +0700 Subject: [PATCH] Add feature flag for team accounts in home-menu-navigation In the home-menu-navigation.tsx file, a feature flag for displaying the Team Accounts section has been implemented leveraging the 'If' component and the flags from the feature-flags.config file. Now, the display of the HomeAccountSelector depends on the status of the 'enableTeamAccounts' flag. --- .../app/home/(user)/_components/home-menu-navigation.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/app/home/(user)/_components/home-menu-navigation.tsx b/apps/web/app/home/(user)/_components/home-menu-navigation.tsx index 1ef536ade..7ca4ff888 100644 --- a/apps/web/app/home/(user)/_components/home-menu-navigation.tsx +++ b/apps/web/app/home/(user)/_components/home-menu-navigation.tsx @@ -2,9 +2,11 @@ import { BorderedNavigationMenu, BorderedNavigationMenuItem, } from '@kit/ui/bordered-navigation-menu'; +import { If } from '@kit/ui/if'; import { AppLogo } from '~/components/app-logo'; import { ProfileAccountDropdownContainer } from '~/components/personal-account-dropdown-container'; +import featuresFlagConfig from '~/config/feature-flags.config'; import { personalAccountNavigationConfig } from '~/config/personal-account-navigation.config'; // home imports @@ -47,7 +49,9 @@ export function HomeMenuNavigation(props: { workspace: UserWorkspace }) {
- + + +