fix: resolve TypeScript build errors for unused variable and return type (#71)

Remove unused `paneTransportsRef` from context menu hook and fix
`EditorPanel` return type to allow `null`.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jinjing
2026-03-23 16:56:57 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 5c461c8021
commit 29119e1d6d
3 changed files with 1 additions and 6 deletions
@@ -16,7 +16,7 @@ type DiffContent = {
modifiedContent: string
}
export default function EditorPanel(): React.JSX.Element {
export default function EditorPanel(): React.JSX.Element | null {
const openFiles = useAppStore((s) => s.openFiles)
const activeFileId = useAppStore((s) => s.activeFileId)
const markFileDirty = useAppStore((s) => s.markFileDirty)
@@ -192,7 +192,6 @@ export default function TerminalPane({
const contextMenu = useTerminalPaneContextMenu({
managerRef,
paneTransportsRef,
toggleExpandPane
})
@@ -1,12 +1,9 @@
import { useEffect, useRef, useState } from 'react'
import type { ManagedPane, PaneManager } from '@/lib/pane-manager/pane-manager'
import type { PtyTransport } from './pty-transport'
const CLOSE_ALL_CONTEXT_MENUS_EVENT = 'orca-close-all-context-menus'
type UseTerminalPaneContextMenuDeps = {
managerRef: React.RefObject<PaneManager | null>
paneTransportsRef: React.RefObject<Map<number, PtyTransport>>
toggleExpandPane: (paneId: number) => void
}
@@ -29,7 +26,6 @@ type TerminalMenuState = {
export function useTerminalPaneContextMenu({
managerRef,
paneTransportsRef,
toggleExpandPane
}: UseTerminalPaneContextMenuDeps): TerminalMenuState {
const contextPaneIdRef = useRef<number | null>(null)