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:
co-authored by
Claude Opus 4.6
parent
5c461c8021
commit
29119e1d6d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user