mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tui: cleanup unused imports and remove empty onKeyDown handler
This commit is contained in:
parent
d2bbe31177
commit
e47cdca052
3 changed files with 4 additions and 5 deletions
|
|
@ -34,7 +34,7 @@ export function Prompt(props: PromptProps) {
|
|||
let anchor: BoxRenderable
|
||||
let autocomplete: AutocompleteRef
|
||||
|
||||
const dialog = useDialog()
|
||||
|
||||
const keybind = useKeybind()
|
||||
const local = useLocal()
|
||||
const sdk = useSDK()
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ export function Session() {
|
|||
const dialog = useDialog()
|
||||
|
||||
return (
|
||||
<box paddingTop={1} paddingBottom={1} paddingLeft={2} paddingRight={2} flexGrow={1} onKeyDown={(e) => {}}>
|
||||
<box paddingTop={1} paddingBottom={1} paddingLeft={2} paddingRight={2} flexGrow={1}>
|
||||
<Show when={session()}>
|
||||
<Header />
|
||||
<scrollbox
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import { useKeyboard, useRenderer, useTerminalDimensions } from "@opentui/solid"
|
||||
import { batch, createContext, For, Show, useContext, type JSX, type ParentProps } from "solid-js"
|
||||
import { batch, createContext, Show, useContext, type JSX, type ParentProps } from "solid-js"
|
||||
import { Theme } from "@tui/context/theme"
|
||||
import { Renderable, RGBA } from "@opentui/core"
|
||||
import { createStore, produce } from "solid-js/store"
|
||||
import { render } from "solid-js/web"
|
||||
import { createStore } from "solid-js/store"
|
||||
|
||||
const Border = {
|
||||
topLeft: "┃",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue