refactor: better typing for tool icons

This commit is contained in:
2026-10-10 11:47:31 +05:00
parent 8b2172c39a
commit 2ddb348e54
20 changed files with 94 additions and 62 deletions
+3 -3
View File
@@ -13,7 +13,7 @@
} from "$lib/i18n/schema-tool-strings";
import { t } from "$lib/i18n/t";
import { PAGES } from "$lib/registry";
import { TOOL_ICONS } from "$lib/tool-icons";
import { toolIcon } from "$lib/tool-icons";
let query = $state("");
let category = $state<string>("all");
@@ -52,7 +52,7 @@
slug={page.slug}
description={pageDescription(page)}
index={i + 1}
icon={TOOL_ICONS[page.slug]}
icon={toolIcon(page.slug)}
/>
{/each}
</CatalogGroup>
@@ -65,7 +65,7 @@
slug={page.slug}
description={pageDescription(page)}
index={i + 1}
icon={TOOL_ICONS[page.slug]}
icon={toolIcon(page.slug)}
/>
{/each}
</CatalogGroup>