Icon bug fix

This commit is contained in:
Sean Edmunds
2025-12-30 11:12:39 -06:00
parent b2d1b8a68c
commit 9b5bf901d5

View File

@@ -390,20 +390,20 @@ export default function Search({
}; };
const renderItem: any = (item: any) => { const renderItem: any = (item: any) => {
const Icon = item.option.icon const Icon = item.option.prefix
? allIcons[ ? allIcons[
item.option.icon item.option.prefix === '/g'
? item.option.icon ? 'FaGoogle'
: item.option.prefix === '/g' : (providers.find((p: Provider) => p.prefix === item.option.prefix)?.icon ??
? 'FaGoogle' '')
: (providers.find((p: Provider) => p.prefix === item.option.prefix)?.icon ??
'')
] ]
: item.option.type === 'SSH' : item.option.icon
? allIcons.FaTerminal ? allIcons[item.option.icon]
: item.option.type === 'RDP' : item.option.type && item.option.type === 'SSH'
? allIcons.FaComputer ? allIcons.FaTerminal
: allIcons.FaDesktop; : item.option.type === 'RDP'
? allIcons.FaComputer
: allIcons.FaDesktop;
return (searchValue as string).startsWith('!') ? ( return (searchValue as string).startsWith('!') ? (
<Group <Group
pos={'relative'} pos={'relative'}