Private
Public Access
1
0

chg: dev: massive refactor on front-end - and remove unnecessary deps #4

This commit is contained in:
2026-04-10 17:57:26 +02:00
parent 086d6c601e
commit b57442bec1
22 changed files with 2619 additions and 1425 deletions

View File

@@ -0,0 +1,26 @@
import React, { useRef } from 'react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { GameProvider } from './contexts/GameContext';
import { GameBoard } from './components/GameBoard';
const queryClient = new QueryClient();
const MineSeeker = ({ env, gameId }) => {
const isEnvDev = 'dev' === env;
const gameAssoc = useRef('' !== gameId ? gameId : crypto.randomUUID()).current;
const gameInherited = '' !== gameId;
return (
<QueryClientProvider client={queryClient}>
<GameProvider>
<GameBoard
gameAssoc={gameAssoc}
gameInherited={gameInherited}
isEnvDev={isEnvDev}
/>
</GameProvider>
</QueryClientProvider>
);
};
export default MineSeeker;