mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user