- {categoryEmoji} {categoryName}
+ {categoryName}
{catItems.map((item) => (
diff --git a/src/client/components/ThreadCard.tsx b/src/client/components/ThreadCard.tsx
index ab40f42..7be0a17 100644
--- a/src/client/components/ThreadCard.tsx
+++ b/src/client/components/ThreadCard.tsx
@@ -1,5 +1,6 @@
import { useNavigate } from "@tanstack/react-router";
import { formatPrice } from "../lib/formatters";
+import { LucideIcon } from "../lib/iconData";
interface ThreadCardProps {
id: number;
@@ -10,7 +11,7 @@ interface ThreadCardProps {
createdAt: string;
status: "active" | "resolved";
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
}
function formatDate(iso: string): string {
@@ -36,7 +37,7 @@ export function ThreadCard({
createdAt,
status,
categoryName,
- categoryEmoji,
+ categoryIcon,
}: ThreadCardProps) {
const navigate = useNavigate();
@@ -66,7 +67,7 @@ export function ThreadCard({
- {categoryEmoji} {categoryName}
+ {categoryName}
{candidateCount} {candidateCount === 1 ? "candidate" : "candidates"}
diff --git a/src/client/hooks/useCategories.ts b/src/client/hooks/useCategories.ts
index 62552b0..4a09694 100644
--- a/src/client/hooks/useCategories.ts
+++ b/src/client/hooks/useCategories.ts
@@ -29,7 +29,7 @@ export function useUpdateCategory() {
}: {
id: number;
name?: string;
- emoji?: string;
+ icon?: string;
}) => apiPut(`/api/categories/${id}`, data),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ["categories"] });
diff --git a/src/client/hooks/useItems.ts b/src/client/hooks/useItems.ts
index 26fc3af..d2c6f18 100644
--- a/src/client/hooks/useItems.ts
+++ b/src/client/hooks/useItems.ts
@@ -14,7 +14,7 @@ interface ItemWithCategory {
createdAt: string;
updatedAt: string;
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
}
export function useItems() {
diff --git a/src/client/hooks/useSetups.ts b/src/client/hooks/useSetups.ts
index cef4fa4..e15f500 100644
--- a/src/client/hooks/useSetups.ts
+++ b/src/client/hooks/useSetups.ts
@@ -23,7 +23,7 @@ interface SetupItemWithCategory {
createdAt: string;
updatedAt: string;
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
}
interface SetupWithItems {
diff --git a/src/client/hooks/useThreads.ts b/src/client/hooks/useThreads.ts
index e33386d..c1ec41f 100644
--- a/src/client/hooks/useThreads.ts
+++ b/src/client/hooks/useThreads.ts
@@ -8,7 +8,7 @@ interface ThreadListItem {
resolvedCandidateId: number | null;
categoryId: number;
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
createdAt: string;
updatedAt: string;
candidateCount: number;
@@ -29,7 +29,7 @@ interface CandidateWithCategory {
createdAt: string;
updatedAt: string;
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
}
interface ThreadWithCandidates {
diff --git a/src/client/hooks/useTotals.ts b/src/client/hooks/useTotals.ts
index 482b05c..f5486e7 100644
--- a/src/client/hooks/useTotals.ts
+++ b/src/client/hooks/useTotals.ts
@@ -4,7 +4,7 @@ import { apiGet } from "../lib/api";
interface CategoryTotals {
categoryId: number;
categoryName: string;
- categoryEmoji: string;
+ categoryIcon: string;
totalWeight: number;
totalCost: number;
itemCount: number;
diff --git a/src/client/lib/iconData.ts b/src/client/lib/iconData.tsx
similarity index 100%
rename from src/client/lib/iconData.ts
rename to src/client/lib/iconData.tsx