From 347d56fee83cbcce5ba8aff803d44365e1232963 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Tue, 23 Jul 2024 22:46:23 +0200 Subject: [PATCH] prepare displaying correct board view --- src/View/ChatPages/boardPage.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/View/ChatPages/boardPage.tsx b/src/View/ChatPages/boardPage.tsx index 3c855a75..03b993cb 100644 --- a/src/View/ChatPages/boardPage.tsx +++ b/src/View/ChatPages/boardPage.tsx @@ -11,6 +11,17 @@ import { translations } from "../translations"; export function BoardPage(boardViewModel: BoardViewModel) { boardViewModel.loadData(); + const mainContent = React.createProxyState( + [boardViewModel.selectedPage], + () => { + switch (boardViewModel.selectedPage.value) { + default: { + return
; + } + } + } + ); + return (
@@ -67,7 +78,7 @@ export function BoardPage(boardViewModel: BoardViewModel) {
-
+
{BoardSettingsModal(boardViewModel)}