fix: update renamed Lucide icons (Wand2 -> Wand, Columns -> Columns2) (#149)

Lucide v0.577 dropped Wand2 and Columns from the icons object used
for dynamic lookup. Named exports still exist as aliases, but the
landing site and tools index use icons[name] which fails silently.

Updates shared constants and web app icon-map to use the current names.
This commit is contained in:
SnapOtter
2026-05-18 16:50:30 +08:00
committed by GitHub
parent dfddaef260
commit 27bbdb6e8a
2 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -5,7 +5,6 @@ import {
BookImage,
CheckCircle2,
Code,
Columns,
Columns2,
Copy,
Crop,
@@ -53,7 +52,7 @@ import {
Type,
Undo2,
UserCheck,
Wand2,
Wand,
Wrench,
Zap,
ZoomIn,
@@ -67,7 +66,6 @@ export const ICON_MAP: Record<string, LucideIcon> = {
BookImage,
CheckCircle2,
Code,
Columns,
Columns2,
Copy,
Crop,
@@ -115,7 +113,7 @@ export const ICON_MAP: Record<string, LucideIcon> = {
Type,
Undo2,
UserCheck,
Wand2,
Wand,
Wrench,
Zap,
ZoomIn,
+2 -2
View File
@@ -158,7 +158,7 @@ export const TOOLS: Tool[] = [
name: "Object Eraser",
description: "Remove unwanted objects with AI",
category: "ai",
icon: "Wand2",
icon: "Wand",
route: "/erase-object",
},
{
@@ -377,7 +377,7 @@ export const TOOLS: Tool[] = [
name: "Stitch / Combine",
description: "Join images side by side, stacked, or in a grid",
category: "layout",
icon: "Columns",
icon: "Columns2",
route: "/stitch",
},
{