Merge pull request #542 from rowboatlabs/dev

fix: resolve TS errors for unused fileContent state and missing JSX n…
This commit is contained in:
Ramnique Singh 2026-05-09 00:43:16 +05:30 committed by GitHub
commit 10995ebed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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'