feat: create achievements page

This commit is contained in:
Zamitto 2024-10-07 17:13:30 -03:00
parent 6d4f957e2b
commit 39af661720
8 changed files with 76 additions and 20 deletions

View file

@ -49,8 +49,8 @@ contextBridge.exposeInMainWorld("electron", {
getGameStats: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getGameStats", objectId, shop),
getTrendingGames: () => ipcRenderer.invoke("getTrendingGames"),
getGameAchievements: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getGameAchievements", objectId, shop),
getGameAchievements: (objectId: string, shop: GameShop, userId?: string) =>
ipcRenderer.invoke("getGameAchievements", objectId, shop, userId),
onAchievementUnlocked: (
cb: (
objectId: string,