cleanup
This commit is contained in:
@@ -33,10 +33,11 @@ export interface AppContext {
|
||||
}
|
||||
|
||||
export function AppProvider({ children }: { children: ReactNode }) {
|
||||
const [gameData, setGameData] = useState<GameUpdate>(gameStart);
|
||||
const [gameID, setGameID] = useState('');
|
||||
const [noGame, setNoGame] = useState(false);
|
||||
const [selectCardIndex, setSelectCardIndex] = useState(-1);
|
||||
const [gameData, setGameData] = useState<GameUpdate>(gameStart);
|
||||
const [tilts, setTilts] = useState<Tilt[]>([]);
|
||||
|
||||
const { flipCard, redraw, select, handleSettings } = useSocket({
|
||||
gameID,
|
||||
@@ -44,8 +45,6 @@ export function AppProvider({ children }: { children: ReactNode }) {
|
||||
setNoGame,
|
||||
});
|
||||
|
||||
const [tilts, setTilts] = useState<Tilt[]>([]);
|
||||
|
||||
const handleSelect = (cardID: string) => {
|
||||
setSelectCardIndex(-1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user