mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
style render move times toggle
This commit is contained in:
@@ -67,11 +67,16 @@ export const useChessGame = () => {
|
||||
};
|
||||
|
||||
const handleToggleClock = () => {
|
||||
console.log("Toggle clock");
|
||||
gameDispatch({
|
||||
type: "TOGGLE_DIAGRAM_CLOCK",
|
||||
});
|
||||
};
|
||||
|
||||
const handleToggleDiagram = () => {
|
||||
console.log("Toggle diagram");
|
||||
};
|
||||
|
||||
return {
|
||||
gameState,
|
||||
fileInputRef,
|
||||
@@ -80,5 +85,6 @@ export const useChessGame = () => {
|
||||
handleClearGame,
|
||||
handleLoadPgn,
|
||||
handleToggleClock,
|
||||
handleToggleDiagram,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user