From 873760566675697fe2550931dda095c615dcf6c7 Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Sat, 9 May 2026 00:42:03 +0530 Subject: [PATCH] fix: resolve TS errors for unused fileContent state and missing JSX namespace Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/x/apps/renderer/src/App.tsx | 2 +- apps/x/apps/renderer/src/components/persistent-viewer-cache.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index 2dff9fd8..5ec8476b 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -688,7 +688,7 @@ function App() { // File browser state (for Knowledge section) const [selectedPath, setSelectedPath] = useState(null) - const [fileContent, setFileContent] = useState('') + const [, setFileContent] = useState('') const [editorContent, setEditorContent] = useState('') const editorContentRef = useRef('') const [editorContentByPath, setEditorContentByPath] = useState>({}) diff --git a/apps/x/apps/renderer/src/components/persistent-viewer-cache.tsx b/apps/x/apps/renderer/src/components/persistent-viewer-cache.tsx index ca71eca2..de56cf5a 100644 --- a/apps/x/apps/renderer/src/components/persistent-viewer-cache.tsx +++ b/apps/x/apps/renderer/src/components/persistent-viewer-cache.tsx @@ -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'