|
|
|
@ -50,6 +50,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleItemHover(event) {
|
|
|
|
|
setCurrentItemIndex(parseInt(event.target?.dataset?.index, 10));
|
|
|
|
|
}
|
|
|
|
@ -75,6 +76,15 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|
|
|
|
if (searchDescriptions) {
|
|
|
|
|
newResults = newResults.sort((a, b) => b.priority - a.priority);
|
|
|
|
|
}
|
|
|
|
|
newResults.push(
|
|
|
|
|
{
|
|
|
|
|
name: searchString,
|
|
|
|
|
href: `http://google.com/search?q=${searchString}`,
|
|
|
|
|
description: t("quicklaunch.searchGoogle"),
|
|
|
|
|
type: 'service',
|
|
|
|
|
weight: 1
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
setResults(newResults);
|
|
|
|
|
|
|
|
|
@ -82,7 +92,7 @@ export default function QuickLaunch({servicesAndBookmarks, searchString, setSear
|
|
|
|
|
setCurrentItemIndex(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, [searchString, servicesAndBookmarks, searchDescriptions]);
|
|
|
|
|
}, [searchString, servicesAndBookmarks, searchDescriptions, t]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [hidden, setHidden] = useState(true);
|
|
|
|
|