feat(catalog): fetch players, services, shops
This commit is contained in:
+1
-3
@@ -9,9 +9,7 @@ import { ArrowRight, Search, ShoppingBag, Star } from "lucide-react"
|
||||
import Link from "next/link"
|
||||
|
||||
export default async function HomePage() {
|
||||
const games = await listGames()
|
||||
const players = listPlayers()
|
||||
const shops = listShops()
|
||||
const [games, players, shops] = await Promise.all([listGames(), listPlayers(), listShops()])
|
||||
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4 space-y-12">
|
||||
|
||||
Reference in New Issue
Block a user