Skip to content

Commit

Permalink
types: export/import from common/types
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioislima committed Sep 26, 2024
1 parent c49f044 commit 249b813
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/backend/api/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/hyperplay_store_preload.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GamePageActions } from '@hyperplay/utils'
import { GamePageActions } from 'common/types'
import { contextBridge, ipcRenderer } from 'electron'

contextBridge.exposeInMainWorld('api', {
Expand Down
2 changes: 2 additions & 0 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -993,3 +993,5 @@ export interface PointsCollection {
symbol: string
image: string
}

export type { GamePageActions } from '@hyperplay/utils'
1 change: 0 additions & 1 deletion src/frontend/components/UI/DownloadToastManager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export default function DownloadToastManager() {
}, [isExtracting])

if (currentElement === undefined) {
console.debug('no downloads active in download toast manager')
return <></>
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
DMQueueElement,
DownloadManagerState,
GameInfo,
HyperPlayInstallInfo
HyperPlayInstallInfo,
GamePageActions
} from 'common/types'
import { CachedImage, SvgButton } from 'frontend/components/UI'
import {
Expand All @@ -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 = {
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/screens/Game/GamePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 249b813

Please sign in to comment.