move history navigation (closes #9)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { Action, CustomSquares, Lobby, Message } from "@/types";
|
||||
import type { Game, User } from "@chessu/types";
|
||||
import type { Dispatch } from "react";
|
||||
import type { Dispatch, SetStateAction } from "react";
|
||||
import type { Socket } from "socket.io-client";
|
||||
import { syncPgn, syncSide } from "./utils";
|
||||
|
||||
@@ -13,6 +13,8 @@ export function initSocket(
|
||||
addMessage: Function;
|
||||
updateCustomSquares: Dispatch<Partial<CustomSquares>>;
|
||||
makeMove: Function;
|
||||
setNavFen: Dispatch<SetStateAction<string | null>>;
|
||||
setNavIndex: Dispatch<SetStateAction<number | null>>;
|
||||
}
|
||||
) {
|
||||
socket.on("connect", () => {
|
||||
|
||||
Reference in New Issue
Block a user