Merge branch 'main' into feat/ph-capture-missing-icons

Signed-off-by: Thomas Camlong <thomas@ajnart.fr>
This commit is contained in:
Thomas Camlong
2025-04-22 15:28:55 +02:00
committed by GitHub
11 changed files with 96 additions and 138 deletions

View File

@@ -156,6 +156,8 @@ export function IconSearch({ icons }: IconSearchProps) {
[pathname, router, initialSort],
)
const handleSearch = useCallback(
(query: string) => {
setSearchQuery(query)
@@ -211,10 +213,7 @@ export function IconSearch({ icons }: IconSearchProps) {
}, [])
useEffect(() => {
if (filteredIcons.length === 0 && searchQuery && searchQuery.length > 3) {
console.log("no icons found", {
query: searchQuery,
})
if (filteredIcons.length === 0) {
posthog.capture("no icons found", {
query: searchQuery,
})