Clearer way to see if there is an update, more fun tracking

This commit is contained in:
Viktor Rådberg
2024-03-30 14:04:12 +01:00
parent 28c2ff536f
commit 3276dc81fc
16 changed files with 9903 additions and 8982 deletions

View File

@@ -1,6 +1,13 @@
import { createContext } from 'react';
import { InitialGameSettings, Settings } from '../Types/Settings';
type Version = {
installedVersion: string;
isLatest: boolean;
checkForNewVersion: (source: 'settings' | 'start_menu') => Promise<void>;
remoteVersion?: string;
};
export type GlobalSettingsContextType = {
fullscreen: {
isFullscreen: boolean;
@@ -29,6 +36,8 @@ export type GlobalSettingsContextType = {
isPWA: boolean;
preStartCompleted: boolean;
setPreStartCompleted: (completed: boolean) => void;
version: Version;
};
export const GlobalSettingsContext =