diff --git a/src/components/Editor/EditorManager.tsx b/src/components/Editor/EditorManager.tsx index 88efecff..6c311790 100644 --- a/src/components/Editor/EditorManager.tsx +++ b/src/components/Editor/EditorManager.tsx @@ -5,12 +5,7 @@ import EditorContextMenu from './EditorContextMenu' import SearchBar from './Search/SearchBar' import { useFileContext } from '@/contexts/FileContext' -interface EditorManagerProps { - // flattenedFiles: { relativePath: string }[] - showSimilarFiles: boolean -} - -const EditorManager: React.FC = ({ showSimilarFiles }) => { +const EditorManager: React.FC = () => { const [showSearchBar, setShowSearchBar] = useState(false) const [menuVisible, setMenuVisible] = useState(false) const [menuPosition, setMenuPosition] = useState({ x: 0, y: 0 }) @@ -20,8 +15,6 @@ const EditorManager: React.FC = ({ showSimilarFiles }) => { const { editor, suggestionsState, flattenedFiles } = useFileContext() - useEffect(() => {}, [showSimilarFiles]) - const handleContextMenu = (event: React.MouseEvent) => { event.preventDefault() setMenuPosition({ diff --git a/src/components/MainPage.tsx b/src/components/MainPage.tsx index d08255df..cdc600e0 100644 --- a/src/components/MainPage.tsx +++ b/src/components/MainPage.tsx @@ -46,7 +46,7 @@ const MainPageContent: React.FC = () => { {!showChatbot && currentlyOpenFilePath ? (
- +
{showSimilarFiles && ( diff --git a/src/components/Sidebars/FileSideBar/FileExplorer.tsx b/src/components/Sidebars/FileSideBar/FileExplorer.tsx index b6125dff..0094e842 100644 --- a/src/components/Sidebars/FileSideBar/FileExplorer.tsx +++ b/src/components/Sidebars/FileSideBar/FileExplorer.tsx @@ -5,7 +5,7 @@ import { FixedSizeList as List } from 'react-window' import { isFileNodeDirectory } from './utils' import { useFileContext } from '@/contexts/FileContext' -import FileItemRows from './Rows' +import FileItemRows from './FileItemRows' interface FileExplorerProps { lheight?: number diff --git a/src/components/Sidebars/FileSideBar/Rows.tsx b/src/components/Sidebars/FileSideBar/FileItemRows.tsx similarity index 100% rename from src/components/Sidebars/FileSideBar/Rows.tsx rename to src/components/Sidebars/FileSideBar/FileItemRows.tsx