This commit is contained in:
Maciej Caderek
2022-02-23 03:58:46 +01:00
parent ce3167fc7c
commit 59b54c56c7
82 changed files with 365 additions and 61 deletions

View File

@@ -58,12 +58,19 @@ const initialState: State = {
moves: [],
ply: 0,
mobile,
layout: mobile ? "single" : "triple",
layout:
window.innerWidth < window.innerHeight
? "single"
: window.innerWidth < 1366
? "double"
: "triple",
activeTab: "load",
playing: false,
anonymous: false,
};
console.log(initialState);
const [state, setState] = createStore(initialState);
export { state, setState };