From 4dba3c1de6e96b17692c621c08edfaf1abfa6ff2 Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrouk Date: Mon, 22 May 2023 14:14:35 +0200 Subject: [PATCH] Fix sidebar Apparently Menu.Item should be the only children for Menu. I swapped the Tooltip and Menu.Item to fix the problem --- agenta-web/src/components/Sidebar/Sidebar.tsx | 102 +++++++++++------- 1 file changed, 64 insertions(+), 38 deletions(-) diff --git a/agenta-web/src/components/Sidebar/Sidebar.tsx b/agenta-web/src/components/Sidebar/Sidebar.tsx index 2676426eb3..51adee700a 100644 --- a/agenta-web/src/components/Sidebar/Sidebar.tsx +++ b/agenta-web/src/components/Sidebar/Sidebar.tsx @@ -16,51 +16,77 @@ const Sidebar: React.FC = () => { } = theme.useToken(); return ( - + - - } onClick={() => navigate('/playground')}> - Playground - - - - } onClick={() => navigate('/datasets')}> - Datasets - - - - - } onClick={() => navigate('/evaluations')}> - Evaluate - - - - } onClick={() => navigate('/results')}> - Results - - - - } onClick={() => navigate('/vectordb')} disabled={true}> - VectorDB - - - - - } onClick={() => navigate('/deployements')} disabled={true}> + } onClick={() => navigate('/playground')}> + +
+ Playground +
+
+ +
+ } onClick={() => navigate('/datasets')}> + +
+ + Datasets +
+
+ +
+ } onClick={() => navigate('/evaluations')}> + + +
+ + Evaluate +
+ +
+ +
+ } onClick={() => navigate('/results')}> + +
+ + Results +
+
+ +
+ } onClick={() => navigate('/vectordb')} disabled={true}> + +
+ + VectorDB +
+
+ +
+ + } onClick={() => navigate('/deployements')} disabled={true}> + +
+
+ Deployment -
-
- - } onClick={() => navigate('/logs')} disabled={true}> - Monitoring - - + + + + } onClick={() => navigate('/logs')} disabled={true}> + +
+ Monitoring +
+
+ +