feat: favorites — type, mock data, and buttons on player/shop detail pages

This commit is contained in:
zetaloop
2026-02-20 18:35:14 +08:00
parent 1938f9041d
commit 91d1694bcd
5 changed files with 63 additions and 2 deletions
+18
View File
@@ -3,6 +3,7 @@ import type {
ChatSession,
Comment,
Dispute,
Favorite,
Game,
Notification,
Order,
@@ -567,3 +568,20 @@ export const mockTransactions: WalletTransaction[] = [
export const currentUser = mockUsers[0]
export const walletBalance = 430
export const mockFavorites: Favorite[] = [
{
id: "fav1",
userId: "u1",
targetType: "player",
targetId: "u2",
createdAt: "2025-02-16T10:00:00",
},
{
id: "fav2",
userId: "u1",
targetType: "shop",
targetId: "shop1",
createdAt: "2025-02-17T14:00:00",
},
]