From 3aa20aa7d9b912dc8c5d9beaf90bee0ee318db4e Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 3 Jun 2024 14:45:12 +0100 Subject: [PATCH] feat: migrating repacks to a worker --- src/renderer/src/components/sidebar/sidebar.tsx | 2 +- src/renderer/src/pages/downloads/downloads.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx index 41a5f608..45b8d254 100644 --- a/src/renderer/src/components/sidebar/sidebar.tsx +++ b/src/renderer/src/components/sidebar/sidebar.tsx @@ -101,7 +101,7 @@ export function Sidebar() { }; }, [isResizing]); - const getGameTitle = (game: Game) => { + const getGameTitle = (game: Omit) => { if (game.status === "paused") return t("paused", { title: game.title }); if (lastPacket?.game.id === game.id) { diff --git a/src/renderer/src/pages/downloads/downloads.tsx b/src/renderer/src/pages/downloads/downloads.tsx index 7872cdb5..b3ab4d29 100644 --- a/src/renderer/src/pages/downloads/downloads.tsx +++ b/src/renderer/src/pages/downloads/downloads.tsx @@ -61,7 +61,7 @@ export function Downloads() { updateLibrary(); }); - const getFinalDownloadSize = (game: Game) => { + const getFinalDownloadSize = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; if (game.fileSize) return formatBytes(game.fileSize); @@ -72,7 +72,7 @@ export function Downloads() { return "N/A"; }; - const getGameInfo = (game: Game) => { + const getGameInfo = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; const finalDownloadSize = getFinalDownloadSize(game); @@ -132,7 +132,7 @@ export function Downloads() { setShowDeleteModal(true); }; - const getGameActions = (game: Game) => { + const getGameActions = (game: Omit) => { const isGameDownloading = lastPacket?.game.id === game.id; const deleting = isGameDeleting(game.id);