This commit is contained in:
Maciej Caderek
2022-02-14 00:00:41 +01:00
parent 6274236ac7
commit e0b79a7071
26 changed files with 608 additions and 358 deletions

View File

@@ -25,7 +25,7 @@ const prepareBoards = async () => {
for (const [key, style] of Object.entries(styles) as [BoardStyle, Style][]) {
await board.updateConfig({ boardStyle: key });
await board.frame(null, {});
await board.frame(null);
board.render();
boards.push({
key,
@@ -51,12 +51,12 @@ const Boards: Component<{ handlers: Handlers }> = (props) => {
<img
class={
"boards__ico" +
(state.board.boardStyle === board.key
(state.boardConfig.boardStyle === board.key
? " boards__ico--active"
: "")
}
onClick={() => {
setState("board", "boardStyle", board.key);
setState("boardConfig", "boardStyle", board.key);
props.handlers.changeBoardStyle(board.key);
}}
src={board.img}