summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/select-dialog.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-05 11:55:31 -0600
committerAdam <[email protected]>2025-11-05 11:55:35 -0600
commitd525fbf82940442d8d47265b7d7d0a9af8c282bc (patch)
tree5404bdca83992a030fea1693227343d2d401376c /packages/ui/src/components/select-dialog.tsx
parent69a499f80786b2656121cee4469f39df2e6c40e7 (diff)
downloadopencode-d525fbf82940442d8d47265b7d7d0a9af8c282bc.tar.gz
opencode-d525fbf82940442d8d47265b7d7d0a9af8c282bc.zip
feat(desktop): session router, interrupt agent, visual cleanup
Diffstat (limited to 'packages/ui/src/components/select-dialog.tsx')
-rw-r--r--packages/ui/src/components/select-dialog.tsx22
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/ui/src/components/select-dialog.tsx b/packages/ui/src/components/select-dialog.tsx
index 63fad13ec..7018888f3 100644
--- a/packages/ui/src/components/select-dialog.tsx
+++ b/packages/ui/src/components/select-dialog.tsx
@@ -21,15 +21,16 @@ export function SelectDialog<T>(props: SelectDialogProps<T>) {
mouseActive: false,
})
- const { filter, grouped, flat, reset, clear, active, setActive, onKeyDown, onInput } = useFilteredList<T>({
- items: others.items,
- key: others.key,
- filterKeys: others.filterKeys,
- current: others.current,
- groupBy: others.groupBy,
- sortBy: others.sortBy,
- sortGroupsBy: others.sortGroupsBy,
- })
+ const { filter, grouped, flat, reset, clear, active, setActive, onKeyDown, onInput } =
+ useFilteredList<T>({
+ items: others.items,
+ key: others.key,
+ filterKeys: others.filterKeys,
+ current: others.current,
+ groupBy: others.groupBy,
+ sortBy: others.sortBy,
+ sortGroupsBy: others.sortGroupsBy,
+ })
createEffect(() => {
filter()
@@ -117,7 +118,8 @@ export function SelectDialog<T>(props: SelectDialogProps<T>) {
fallback={
<div data-slot="empty-state">
<div data-slot="message">
- {props.emptyMessage ?? "No search results"} for <span data-slot="filter">&quot;{filter()}&quot;</span>
+ {props.emptyMessage ?? "No search results"} for{" "}
+ <span data-slot="filter">&quot;{filter()}&quot;</span>
</div>
</div>
}