Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Sidebar cleanup (and a bit more that's related) #3544

Merged
merged 13 commits into from
Dec 14, 2024
Prev Previous commit
Next Next commit
These changes are needed for the previous commit too
arielj committed Dec 14, 2024
commit 15293ca1d050fe607bd22758ffceeb54ee08780b
4 changes: 2 additions & 2 deletions src/frontend/hooks/useSettingsContext.ts
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import ContextProvider from 'frontend/state/ContextProvider'

type Props = {
appName: string
gameInfo: GameInfo
runner: Runner
gameInfo?: GameInfo
runner?: Runner
}

const useSettingsContext = ({ appName, gameInfo, runner }: Props) => {
4 changes: 2 additions & 2 deletions src/frontend/types.ts
Original file line number Diff line number Diff line change
@@ -188,8 +188,8 @@ export interface SettingsContextType {
config: Partial<AppSettings>
isDefault: boolean
appName: string
runner: Runner
gameInfo: GameInfo | null
runner?: Runner
gameInfo?: GameInfo
isMacNative: boolean
isLinuxNative: boolean
}