Icon bug fix
This commit is contained in:
@@ -390,16 +390,16 @@ 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
|
|
||||||
: item.option.prefix === '/g'
|
|
||||||
? 'FaGoogle'
|
? 'FaGoogle'
|
||||||
: (providers.find((p: Provider) => p.prefix === item.option.prefix)?.icon ??
|
: (providers.find((p: Provider) => p.prefix === item.option.prefix)?.icon ??
|
||||||
'')
|
'')
|
||||||
]
|
]
|
||||||
: item.option.type === 'SSH'
|
: item.option.icon
|
||||||
|
? allIcons[item.option.icon]
|
||||||
|
: item.option.type && item.option.type === 'SSH'
|
||||||
? allIcons.FaTerminal
|
? allIcons.FaTerminal
|
||||||
: item.option.type === 'RDP'
|
: item.option.type === 'RDP'
|
||||||
? allIcons.FaComputer
|
? allIcons.FaComputer
|
||||||
|
|||||||
Reference in New Issue
Block a user