diff --git a/src/backend/api/library.ts b/src/backend/api/library.ts index 3dc0fee5e..d87742f49 100644 --- a/src/backend/api/library.ts +++ b/src/backend/api/library.ts @@ -5,9 +5,9 @@ import { LaunchParams, ImportGameArgs, GameStatus, - GameInfo + GameInfo, + GamePageActions } from 'common/types' -import { GamePageActions } from '@hyperplay/utils' export const openDialog = async (args: Electron.OpenDialogOptions) => ipcRenderer.invoke('openDialog', args) diff --git a/src/backend/hyperplay_store_preload.ts b/src/backend/hyperplay_store_preload.ts index a2d631a82..ff74460bd 100644 --- a/src/backend/hyperplay_store_preload.ts +++ b/src/backend/hyperplay_store_preload.ts @@ -1,4 +1,4 @@ -import { GamePageActions } from '@hyperplay/utils' +import { GamePageActions } from 'common/types' import { contextBridge, ipcRenderer } from 'electron' contextBridge.exposeInMainWorld('api', { diff --git a/src/common/types.ts b/src/common/types.ts index c6f937c3f..da6c8e393 100644 --- a/src/common/types.ts +++ b/src/common/types.ts @@ -993,3 +993,5 @@ export interface PointsCollection { symbol: string image: string } + +export type { GamePageActions } from '@hyperplay/utils' diff --git a/src/frontend/components/UI/DownloadToastManager/index.tsx b/src/frontend/components/UI/DownloadToastManager/index.tsx index 5f3657252..a595417d8 100644 --- a/src/frontend/components/UI/DownloadToastManager/index.tsx +++ b/src/frontend/components/UI/DownloadToastManager/index.tsx @@ -117,7 +117,6 @@ export default function DownloadToastManager() { }, [isExtracting]) if (currentElement === undefined) { - console.debug('no downloads active in download toast manager') return <> } diff --git a/src/frontend/screens/DownloadManager/components/DownloadManagerItem/index.tsx b/src/frontend/screens/DownloadManager/components/DownloadManagerItem/index.tsx index e0981a892..6768bd0fd 100644 --- a/src/frontend/screens/DownloadManager/components/DownloadManagerItem/index.tsx +++ b/src/frontend/screens/DownloadManager/components/DownloadManagerItem/index.tsx @@ -6,7 +6,8 @@ import { DMQueueElement, DownloadManagerState, GameInfo, - HyperPlayInstallInfo + HyperPlayInstallInfo, + GamePageActions } from 'common/types' import { CachedImage, SvgButton } from 'frontend/components/UI' import { @@ -26,7 +27,6 @@ import libraryState from 'frontend/state/libraryState' import { hasStatus } from 'frontend/hooks/hasStatus' import { Images } from '@hyperplay/ui' import styles from './index.module.scss' -import { GamePageActions } from '@hyperplay/utils' const { PauseIcon, PlayIcon, XCircle, DownloadIcon } = Images type Props = { diff --git a/src/frontend/screens/Game/GamePage/index.tsx b/src/frontend/screens/Game/GamePage/index.tsx index 8d3fb0985..db04b8d2e 100644 --- a/src/frontend/screens/Game/GamePage/index.tsx +++ b/src/frontend/screens/Game/GamePage/index.tsx @@ -31,7 +31,8 @@ import { HyperPlayInstallInfo, InstallProgress, Runner, - WineInstallation + WineInstallation, + GamePageActions } from 'common/types' import { LegendaryInstallInfo } from 'common/types/legendary' import { GogInstallInfo } from 'common/types/gog' @@ -68,7 +69,6 @@ import libraryState from 'frontend/state/libraryState' import DMQueueState from 'frontend/state/DMQueueState' import { useEstimatedUncompressedSize } from 'frontend/hooks/useEstimatedUncompressedSize' import authState from 'frontend/state/authState' -import { GamePageActions } from '@hyperplay/utils' type locationState = { fromDM?: boolean