more refactoring

This commit is contained in:
Gavin McDonald
2025-06-26 15:30:03 -04:00
parent 2c2e93649c
commit a0e4f54ed9
6 changed files with 61 additions and 71 deletions

View File

@@ -23,6 +23,7 @@ export interface AppContext {
gameData: GameUpdate;
noGame: boolean;
tilts: Tilt[];
selectCardIndex: number;
flipCard: (cardIndex: number) => void;
handleSettings: (gameData: GameUpdate) => void;
redraw: (cardIndex: number) => void;
@@ -55,6 +56,7 @@ export function AppProvider({ children }: { children: ReactNode }) {
gameData,
noGame,
tilts,
selectCardIndex,
flipCard,
handleSettings,
redraw,