fix: render lucide icons in community and service form

This commit is contained in:
zetaloop
2026-02-20 20:07:55 +08:00
parent 7795c303f3
commit b9859438d8
2 changed files with 9 additions and 4 deletions
@@ -18,6 +18,7 @@ import {
SelectValue,
} from "@/components/ui/select"
import { Textarea } from "@/components/ui/textarea"
import { GameIcon } from "@/lib/game-icons"
import { mockGames } from "@/lib/mock-data"
const serviceSchema = z.object({
@@ -70,7 +71,10 @@ export default function NewServicePage() {
<SelectContent>
{mockGames.map((game) => (
<SelectItem key={game.id} value={game.id}>
{game.icon} {game.name}
<div className="flex items-center gap-2">
<GameIcon name={game.icon} className="h-4 w-4" />
{game.name}
</div>
</SelectItem>
))}
</SelectContent>