chore(tui): fix eslint/prettier nits from npm run fix
- drop inline `import()` type annotation in useSessionLifecycle (import `PanelSection` at the top like everything else) - include `panel` and `session.resumeById` in the useMainApp useMemo deps now that the event handler depends on them - wrap the derived `selected` range in a useMemo so it has stable identity and stops invalidating the TextInput `rendered` memo every render - prettier re-sorting of a couple of export/import lines
This commit is contained in:
@@ -11,7 +11,7 @@ import type {
|
||||
SetupStatusResponse
|
||||
} from '../gatewayTypes.js'
|
||||
import { asRpcResult } from '../lib/rpc.js'
|
||||
import type { Msg, SessionInfo, Usage } from '../types.js'
|
||||
import type { Msg, PanelSection, SessionInfo, Usage } from '../types.js'
|
||||
|
||||
import type { ComposerActions, GatewayRpc, StateSetter } from './interfaces.js'
|
||||
import { patchOverlayState } from './overlayStore.js'
|
||||
@@ -39,7 +39,7 @@ export interface UseSessionLifecycleOptions {
|
||||
colsRef: { current: number }
|
||||
composerActions: ComposerActions
|
||||
gw: GatewayClient
|
||||
panel: (title: string, sections: import('../types.js').PanelSection[]) => void
|
||||
panel: (title: string, sections: PanelSection[]) => void
|
||||
rpc: GatewayRpc
|
||||
setHistoryItems: StateSetter<Msg[]>
|
||||
setLastUserMsg: StateSetter<string>
|
||||
|
||||
Reference in New Issue
Block a user