refactor: remove hardcoded display values and unused lib/id.ts

Delete hardcoded marketing stats in auth layout and ¥12,800
placeholder in owner dashboard. Remove lib/id.ts which is no
longer referenced by any module.
This commit is contained in:
zetaloop
2026-05-01 04:22:33 +08:00
parent cd469d3d54
commit b6002f5691
5 changed files with 7 additions and 30 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ export default async function ShopPage({ params }: PageProps) {
}
const [shopPlayers, allServices] = await Promise.all([listPlayersByShop(shop.id), listServices()])
const playerIds = shopPlayers.map((p) => p.id)
const shopServices = allServices.filter((s) => playerIds.includes(s.playerId))
const playerIds = new Set(shopPlayers.map((player) => String(player.id)))
const shopServices = allServices.filter((service) => playerIds.has(String(service.playerId)))
const shopReviews = await listReviews()
const sortedSections = getShopSections(shop).filter((s) => s.enabled)