Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(searchPanelShared): correct search input placeholder text

Steven Enamakelc290d7e7e289
diff --git a/app/src/components/settings/panels/searchPanelShared.tsx b/app/src/components/settings/panels/searchPanelShared.tsx
index c9cb396b62..d8fb47f09a 100644
--- a/app/src/components/settings/panels/searchPanelShared.tsx
+++ b/app/src/components/settings/panels/searchPanelShared.tsx
@@ -6,6 +6,7 @@
* Nothing here knows a provider by id except the cosmetic swatch tables; the
* behavior is driven by the provider entry the core returned.
*/
+import { createElement } from 'react';
import type { IconType } from 'react-icons';
import { SiBrave, SiGooglegemini, SiSearxng } from 'react-icons/si';
@@ -115,7 +116,7 @@ export const SearchProviderSwatch = ({
label: string;
size?: 'sm' | 'md';
}) => {
- const Icon = SWATCH_ICONS[id];
+ const icon = SWATCH_ICONS[id];
return (
<span
aria-hidden
@@ -125,11 +126,9 @@ export const SearchProviderSwatch = ({
size === 'sm' ? 'h-7 w-7 text-[11px]' : 'h-9 w-9 text-xs',
SWATCH_TONES[id] ?? 'bg-[#27272A]'
)}>
- {Icon ? (
- <Icon className={size === 'sm' ? 'h-3.5 w-3.5' : 'h-4 w-4'} />
- ) : (
- label.trim().charAt(0).toUpperCase() || '?'
- )}
+ {icon
+ ? createElement(icon, { className: size === 'sm' ? 'h-3.5 w-3.5' : 'h-4 w-4' })
+ : label.trim().charAt(0).toUpperCase() || '?'}
</span>
);
};