This commit is contained in:
Maciej Caderek
2022-02-14 17:46:14 +01:00
parent e0b79a7071
commit 3e20babe24
8 changed files with 90 additions and 17 deletions

View File

@@ -37,6 +37,7 @@ export type State = {
moves: string[];
ply: number;
mobile: boolean;
activeTab: "game" | "load";
};
const initialState: State = {
@@ -48,6 +49,7 @@ const initialState: State = {
moves: [],
ply: 0,
mobile: isMobile(),
activeTab: "load",
};
const [state, setState] = createStore(initialState);