mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
Conditionally render testing feature based on use testing flag
This commit is contained in:
parent
01e7962868
commit
7f6ece90f8
1 changed files with 3 additions and 2 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
} from "lucide-react";
|
||||
import { getProjectConfig } from "@/app/actions/project_actions";
|
||||
import { useTheme } from "@/app/providers/theme-provider";
|
||||
import { USE_TESTING_FEATURE } from '@/app/lib/feature_flags';
|
||||
|
||||
interface SidebarProps {
|
||||
projectId: string;
|
||||
|
|
@ -56,12 +57,12 @@ export default function Sidebar({ projectId, useRag, useAuth, collapsed = false,
|
|||
icon: WorkflowIcon,
|
||||
requiresProject: true
|
||||
},
|
||||
{
|
||||
...(USE_TESTING_FEATURE ? [{
|
||||
href: 'test',
|
||||
label: 'Test',
|
||||
icon: PlayIcon,
|
||||
requiresProject: true
|
||||
},
|
||||
}] : []),
|
||||
...(useRag ? [{
|
||||
href: 'sources',
|
||||
label: 'RAG',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue