fix(desktop): Revert provider icon on select model dialog (#8245)

This commit is contained in:
Daniel Polito
2026-01-13 15:26:21 -03:00
committed by Frank
parent c67b0a9ba4
commit dc654c93d2
2 changed files with 4 additions and 19 deletions

View File

@@ -10,15 +10,9 @@ export interface ListSearchProps {
autofocus?: boolean
}
export interface ListGroup<T> {
category: string
items: T[]
}
export interface ListProps<T> extends FilteredListProps<T> {
class?: string
children: (item: T) => JSX.Element
groupHeader?: (group: ListGroup<T>) => JSX.Element
emptyMessage?: string
onKeyEvent?: (event: KeyboardEvent, item: T | undefined) => void
onMove?: (item: T | undefined) => void
@@ -122,7 +116,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
setScrollRef,
})
function GroupHeader(groupProps: { category: string; children?: JSX.Element }): JSX.Element {
function GroupHeader(groupProps: { category: string }): JSX.Element {
const [stuck, setStuck] = createSignal(false)
const [header, setHeader] = createSignal<HTMLDivElement | undefined>(undefined)
@@ -144,7 +138,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
return (
<div data-slot="list-header" data-stuck={stuck()} ref={setHeader}>
{groupProps.children ?? groupProps.category}
{groupProps.category}
</div>
)
}
@@ -191,7 +185,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
{(group) => (
<div data-slot="list-group">
<Show when={group.category}>
<GroupHeader category={group.category}>{props.groupHeader?.(group)}</GroupHeader>
<GroupHeader category={group.category} />
</Show>
<div data-slot="list-items">
<For each={group.items}>