fix: resolve TS errors for unused fileContent state and missing JSX namespace

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ramnique Singh 2026-05-09 00:42:03 +05:30
parent b7b84e94e0
commit 8737605666
2 changed files with 2 additions and 2 deletions

View file

@ -688,7 +688,7 @@ function App() {
// File browser state (for Knowledge section)
const [selectedPath, setSelectedPath] = useState<string | null>(null)
const [fileContent, setFileContent] = useState<string>('')
const [, setFileContent] = useState<string>('')
const [editorContent, setEditorContent] = useState<string>('')
const editorContentRef = useRef<string>('')
const [editorContentByPath, setEditorContentByPath] = useState<Record<string, string>>({})

View file

@ -1,4 +1,4 @@
import { useEffect, useState } from 'react'
import { useEffect, useState, type JSX } from 'react'
import { HtmlFileViewer } from './html-file-viewer'
import { PdfFileViewer } from './pdf-file-viewer'
import { getViewerType, isCacheableViewerPath } from '@/lib/file-types'