File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed
Library/components/GameCard
Settings/components/SettingsModal Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { GameInfo } from 'common/types'
3
3
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
4
4
import { faTriangleExclamation } from '@fortawesome/free-solid-svg-icons'
5
5
import { useTranslation } from 'react-i18next'
6
- import { openGameLogsModal } from 'frontend/state/SettingsModal '
6
+ import { openGameLogsModal } from 'frontend/state/GameSettingsModal '
7
7
8
8
interface Props {
9
9
gameInfo : GameInfo
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
2
2
import { GameInfo } from 'common/types'
3
3
import { SvgButton } from 'frontend/components/UI'
4
4
import SettingsIcoAlt from 'frontend/assets/settings_icon_alt.svg?react'
5
- import { openGameSettingsModal } from 'frontend/state/SettingsModal '
5
+ import { openGameSettingsModal } from 'frontend/state/GameSettingsModal '
6
6
7
7
interface Props {
8
8
gameInfo : GameInfo
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ import { hasAnticheatInfo } from 'frontend/hooks/hasAnticheatInfo'
71
71
import { hasHelp } from 'frontend/hooks/hasHelp'
72
72
import Genres from './components/Genres'
73
73
import ReleaseDate from './components/ReleaseDate'
74
- import { useGameSettingsModal } from 'frontend/state/SettingsModal '
74
+ import { useGameSettingsModal } from 'frontend/state/GameSettingsModal '
75
75
76
76
export default React . memo ( function GamePage ( ) : JSX . Element | null {
77
77
const { appName, runner } = useParams ( ) as { appName : string ; runner : Runner }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { InstallModal } from 'frontend/screens/Library/components'
13
13
import { CircularProgress } from '@mui/material'
14
14
import UninstallModal from 'frontend/components/UI/UninstallModal'
15
15
import GameContext from '../GameContext'
16
- import { openGameCategoriesModal } from 'frontend/state/SettingsModal '
16
+ import { openGameCategoriesModal } from 'frontend/state/GameSettingsModal '
17
17
18
18
interface Props {
19
19
appName : string
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import {
45
45
openGameCategoriesModal ,
46
46
openGameLogsModal ,
47
47
openGameSettingsModal
48
- } from 'frontend/state/SettingsModal '
48
+ } from 'frontend/state/GameSettingsModal '
49
49
50
50
interface Card {
51
51
buttonClick : ( ) => void
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import CategorySettings from '../../sections/CategorySettings'
16
16
import {
17
17
closeSettingsModal ,
18
18
useGameSettingsModal
19
- } from 'frontend/state/SettingsModal '
19
+ } from 'frontend/state/GameSettingsModal '
20
20
21
21
export type GameSettingsModalTypes = 'settings' | 'log' | 'category'
22
22
Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import { GameInfo } from 'common/types'
2
2
import { GameSettingsModalTypes } from 'frontend/screens/Settings/components/SettingsModal'
3
3
import { create } from 'zustand'
4
4
5
- interface GameSettingsModalOpen {
5
+ interface GameSettingsModalState {
6
6
isOpen : boolean
7
7
type ?: GameSettingsModalTypes
8
8
gameInfo ?: GameInfo
9
9
}
10
10
11
- export const useGameSettingsModal = create < GameSettingsModalOpen > ( ) ( ( ) => ( {
11
+ export const useGameSettingsModal = create < GameSettingsModalState > ( ) ( ( ) => ( {
12
12
isOpen : false
13
13
} ) )
14
14
You can’t perform that action at this time.
0 commit comments