feat(games): fetch games from backend

This commit is contained in:
zetaloop
2026-02-28 16:23:30 +08:00
parent 6dd21e1090
commit f4365668ab
5 changed files with 96 additions and 14 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import { GameIcon } from "@/lib/game-icons"
import { ArrowRight, Search, ShoppingBag, Star } from "lucide-react"
import Link from "next/link"
export default function HomePage() {
const games = listGames()
export default async function HomePage() {
const games = await listGames()
const players = listPlayers()
const shops = listShops()