mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
refactor: better typing for tool icons
This commit is contained in:
@@ -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");
|
||||
@@ -56,7 +56,7 @@
|
||||
slug={page.slug}
|
||||
description={pageDescription(page)}
|
||||
index={i + 1}
|
||||
icon={TOOL_ICONS[page.slug]}
|
||||
icon={toolIcon(page.slug)}
|
||||
/>
|
||||
{/each}
|
||||
</CatalogGroup>
|
||||
@@ -69,7 +69,7 @@
|
||||
slug={page.slug}
|
||||
description={pageDescription(page)}
|
||||
index={i + 1}
|
||||
icon={TOOL_ICONS[page.slug]}
|
||||
icon={toolIcon(page.slug)}
|
||||
/>
|
||||
{/each}
|
||||
</CatalogGroup>
|
||||
|
||||
Reference in New Issue
Block a user