Skip to content

Commit

Permalink
Rename store file and type
Browse files Browse the repository at this point in the history
  • Loading branch information
arielj committed Jan 12, 2025
1 parent 972fc65 commit 80b913a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GameInfo } from 'common/types'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faTriangleExclamation } from '@fortawesome/free-solid-svg-icons'
import { useTranslation } from 'react-i18next'
import { openGameLogsModal } from 'frontend/state/SettingsModal'
import { openGameLogsModal } from 'frontend/state/GameSettingsModal'

interface Props {
gameInfo: GameInfo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { GameInfo } from 'common/types'
import { SvgButton } from 'frontend/components/UI'
import SettingsIcoAlt from 'frontend/assets/settings_icon_alt.svg?react'
import { openGameSettingsModal } from 'frontend/state/SettingsModal'
import { openGameSettingsModal } from 'frontend/state/GameSettingsModal'

interface Props {
gameInfo: GameInfo
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/screens/Game/GamePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import { hasAnticheatInfo } from 'frontend/hooks/hasAnticheatInfo'
import { hasHelp } from 'frontend/hooks/hasHelp'
import Genres from './components/Genres'
import ReleaseDate from './components/ReleaseDate'
import { useGameSettingsModal } from 'frontend/state/SettingsModal'
import { useGameSettingsModal } from 'frontend/state/GameSettingsModal'

export default React.memo(function GamePage(): JSX.Element | null {
const { appName, runner } = useParams() as { appName: string; runner: Runner }
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/screens/Game/GameSubMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { InstallModal } from 'frontend/screens/Library/components'
import { CircularProgress } from '@mui/material'
import UninstallModal from 'frontend/components/UI/UninstallModal'
import GameContext from '../GameContext'
import { openGameCategoriesModal } from 'frontend/state/SettingsModal'
import { openGameCategoriesModal } from 'frontend/state/GameSettingsModal'

interface Props {
appName: string
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/screens/Library/components/GameCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {
openGameCategoriesModal,
openGameLogsModal,
openGameSettingsModal
} from 'frontend/state/SettingsModal'
} from 'frontend/state/GameSettingsModal'

interface Card {
buttonClick: () => void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import CategorySettings from '../../sections/CategorySettings'
import {
closeSettingsModal,
useGameSettingsModal
} from 'frontend/state/SettingsModal'
} from 'frontend/state/GameSettingsModal'

export type GameSettingsModalTypes = 'settings' | 'log' | 'category'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { GameInfo } from 'common/types'
import { GameSettingsModalTypes } from 'frontend/screens/Settings/components/SettingsModal'
import { create } from 'zustand'

interface GameSettingsModalOpen {
interface GameSettingsModalState {
isOpen: boolean
type?: GameSettingsModalTypes
gameInfo?: GameInfo
}

export const useGameSettingsModal = create<GameSettingsModalOpen>()(() => ({
export const useGameSettingsModal = create<GameSettingsModalState>()(() => ({
isOpen: false
}))

Expand Down

0 comments on commit 80b913a

Please sign in to comment.