feat: refactor

This commit is contained in:
Zamitto 2024-10-20 21:29:17 -03:00
parent 33e91e2007
commit 36e6a8cef7
37 changed files with 151 additions and 254 deletions

View file

@ -51,8 +51,6 @@ contextBridge.exposeInMainWorld("electron", {
getGameStats: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getGameStats", objectId, shop),
getTrendingGames: () => ipcRenderer.invoke("getTrendingGames"),
getGameAchievements: (objectId: string, shop: GameShop, userId?: string) =>
ipcRenderer.invoke("getGameAchievements", objectId, shop, userId),
onAchievementUnlocked: (
cb: (
objectId: string,
@ -270,6 +268,8 @@ contextBridge.exposeInMainWorld("electron", {
shop,
userId
),
getUnlockedAchievements: (objectId: string, shop: GameShop) =>
ipcRenderer.invoke("getUnlockedAchievements", objectId, shop),
/* Auth */
signOut: () => ipcRenderer.invoke("signOut"),