Register Gauge icon for plant, remove stale duplicate AppIcon.js
AppIcon.js was a stale, tracked, out-of-sync compiled duplicate of AppIcon.tsx (missing Zap/Thermometer too) sitting next to the real source. Since imports use bare 'from ./AppIcon' with no extension, Vite's default resolve order picks .js before .tsx, so it may have been silently shadowing the real source. Removed it so there's a single source of truth, and added Gauge (plant's icon) there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
26c16e952d
commit
d1b253a00c
2 changed files with 2 additions and 17 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
import { jsx as _jsx } from "react/jsx-runtime";
|
|
||||||
import { ClipboardList, ChefHat, Banknote, BedDouble, TrendingUp, Tag, LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw, ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock, Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed, DollarSign, CalendarDays, } from 'lucide-react';
|
|
||||||
const iconMap = {
|
|
||||||
ClipboardList, ChefHat, Banknote, BedDouble, TrendingUp, Tag,
|
|
||||||
LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw,
|
|
||||||
ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock,
|
|
||||||
Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed,
|
|
||||||
DollarSign, CalendarDays,
|
|
||||||
};
|
|
||||||
export function AppIcon({ name, size = 20, color, strokeWidth = 1.75 }) {
|
|
||||||
const Icon = iconMap[name];
|
|
||||||
if (!Icon)
|
|
||||||
return null;
|
|
||||||
return _jsx(Icon, { size: size, color: color, strokeWidth: strokeWidth });
|
|
||||||
}
|
|
||||||
|
|
@ -3,7 +3,7 @@ import {
|
||||||
LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw,
|
LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw,
|
||||||
ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock,
|
ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock,
|
||||||
Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed,
|
Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed,
|
||||||
DollarSign, CalendarDays, Zap, Thermometer,
|
DollarSign, CalendarDays, Zap, Thermometer, Gauge,
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import type { LucideProps } from 'lucide-react'
|
import type { LucideProps } from 'lucide-react'
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@ const iconMap: Record<string, IconComponent> = {
|
||||||
LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw,
|
LayoutGrid, Users, Activity, Home, ScrollText, RefreshCw,
|
||||||
ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock,
|
ArrowUpCircle, Wifi, Terminal, Settings, Building2, CalendarClock,
|
||||||
Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed,
|
Wrench, BarChart2, Monitor, History, Armchair, UtensilsCrossed,
|
||||||
DollarSign, CalendarDays, Zap, Thermometer,
|
DollarSign, CalendarDays, Zap, Thermometer, Gauge,
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue