From e0e643f59d5d97318207552c2b2063217e6296f7 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Mon, 7 Apr 2025 17:09:55 +0530 Subject: [PATCH] Conditionally render voice configs in settings based on use voice feature flag --- apps/rowboat/app/projects/[projectId]/config/app.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/app/projects/[projectId]/config/app.tsx b/apps/rowboat/app/projects/[projectId]/config/app.tsx index e78d8855..bfff5392 100644 --- a/apps/rowboat/app/projects/[projectId]/config/app.tsx +++ b/apps/rowboat/app/projects/[projectId]/config/app.tsx @@ -27,6 +27,7 @@ import { ToolsSection } from './components/tools'; import { Panel } from "@/components/common/panel-common"; import { Settings, Wrench, Phone } from "lucide-react"; import { clsx } from "clsx"; +import { USE_VOICE_FEATURE } from "@/app/lib/feature_flags"; export const metadata: Metadata = { title: "Project config", @@ -799,7 +800,7 @@ function NavigationMenu({ const items = [ { id: 'Project', icon: }, { id: 'Tools', icon: }, - { id: 'Voice', icon: } + ...(USE_VOICE_FEATURE ? [{ id: 'Voice', icon: }] : []) ]; return (