onSelect(item)}
className={cn(
'relative flex items-center justify-between gap-2 px-2 py-1.5 text-xs cursor-pointer select-none outline-none text-foreground-light',
@@ -37,10 +33,7 @@ export function CommandListItem({
{includeIcon && item.icon}
{item.label}
-
- {item.operatorSymbol && }
- {isSelected && }
-
+ {item.operatorSymbol && }
)
}
diff --git a/packages/ui-patterns/src/FilterBar/DefaultCommandList.helpers.tsx b/packages/ui-patterns/src/FilterBar/DefaultCommandList.helpers.tsx
index 7f75ff009cacd..7a507adc69fff 100644
--- a/packages/ui-patterns/src/FilterBar/DefaultCommandList.helpers.tsx
+++ b/packages/ui-patterns/src/FilterBar/DefaultCommandList.helpers.tsx
@@ -4,7 +4,7 @@ export function EmptyState() {
export function GroupHeader({ label }: { label: string }) {
return (
-
+
{label}
)
diff --git a/packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx b/packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx
index 09d5065ac6d51..761019dfc2589 100644
--- a/packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx
+++ b/packages/ui-patterns/src/FilterBar/DefaultCommandList.tsx
@@ -13,7 +13,6 @@ export type DefaultCommandListProps = {
onSelect: (item: MenuItem) => void
includeIcon?: boolean
grouped?: boolean
- selectedValue?: string
}
export function DefaultCommandList({
@@ -22,7 +21,6 @@ export function DefaultCommandList({
onSelect,
includeIcon = true,
grouped = false,
- selectedValue,
}: DefaultCommandListProps) {
const listRef = useRef
(null)
const itemRefs = useRef