diff --git a/src/components/MainPage.tsx b/src/components/MainPage.tsx index 7657ace6..09ba2806 100644 --- a/src/components/MainPage.tsx +++ b/src/components/MainPage.tsx @@ -1,3 +1,5 @@ +/* eslint-disable react/jsx-no-useless-fragment */ +/* eslint-disable no-nested-ternary */ import React, { useState } from 'react' import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@/components/ui/resizable' @@ -41,14 +43,14 @@ const MainPageContent: React.FC = () => { const { getShortcutDescription } = useAppShortcuts() return ( -
+
setShowSimilarFiles(!showSimilarFiles)} /> -
+
- +
@@ -57,22 +59,37 @@ const MainPageContent: React.FC = () => { - - {(!showChatbot || currentlyOpenFilePath) && } - - - {showChatbot && ( - <> - - -
-
- -
+ +
+ {currentlyOpenFilePath ? ( + <> + {showChatbot ? ( + + + + + + +
+ +
+
+
+ ) : ( + + )} + + ) : showChatbot ? ( +
+ +
+ ) : ( +
+
- - - )} + )} +
+