fix: render lucide game icons in homepage and search page

This commit is contained in:
zetaloop
2026-02-20 20:07:48 +08:00
parent 082da2ff0c
commit 7795c303f3
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ import {
SheetTrigger,
} from "@/components/ui/sheet"
import { Switch } from "@/components/ui/switch"
import { GameIcon } from "@/lib/game-icons"
import { mockGames, mockPlayers } from "@/lib/mock-data"
import type { Player } from "@/lib/types"
import { cn } from "@/lib/utils"
@@ -209,7 +210,7 @@ function FilterSection({
htmlFor={`game-${game.id}`}
className="text-sm font-normal cursor-pointer flex items-center gap-2"
>
<span>{game.icon}</span>
<GameIcon name={game.icon} className="h-4 w-4" />
{game.name}
</Label>
</div>