Merge branch 'dev' into mobile-option

This commit is contained in:
Jon Eugster
2023-12-13 15:20:24 +01:00
committed by GitHub
51 changed files with 1967 additions and 980 deletions
+5 -1
View File
@@ -11,7 +11,7 @@ import './css/app.css';
import { MobileContext } from './components/infoview/context';
import { useMobile } from './hooks';
import { AUTO_SWITCH_THRESHOLD, getWindowDimensions} from './state/preferences';
import { connection } from './connection';
export const GameIdContext = React.createContext<string>(undefined);
@@ -37,6 +37,10 @@ function App() {
}
}, [lockMobile])
React.useEffect(() => {
connection.startLeanClient(gameId);
}, [gameId])
return (
<div className="app">
<GameIdContext.Provider value={gameId}>