From febd3df5ac6d4d92213fe195d12bbef0d7416272 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 16 Sep 2021 11:22:55 +0100 Subject: [PATCH 1/2] Fix MainSplit IProps --- src/components/structures/MainSplit.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MainSplit.tsx b/src/components/structures/MainSplit.tsx index 0148bfca91..af7645767d 100644 --- a/src/components/structures/MainSplit.tsx +++ b/src/components/structures/MainSplit.tsx @@ -24,7 +24,7 @@ import { Direction } from "re-resizable/lib/resizer"; interface IProps { resizeNotifier: ResizeNotifier; collapsedRhs?: boolean; - panel: JSX.Element; + panel?: JSX.Element; } @replaceableComponent("structures.MainSplit") From ec4650c60dd0f20f7954236a7457aaa8a61ee1fc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 16 Sep 2021 11:23:41 +0100 Subject: [PATCH 2/2] Fix abuse of MainSplit in LegacyCommunityPreview --- src/components/structures/LegacyCommunityPreview.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/structures/LegacyCommunityPreview.tsx b/src/components/structures/LegacyCommunityPreview.tsx index 92aea8bb7d..32bafeb3fa 100644 --- a/src/components/structures/LegacyCommunityPreview.tsx +++ b/src/components/structures/LegacyCommunityPreview.tsx @@ -28,7 +28,6 @@ import { linkifyElement } from "../../HtmlUtils"; import defaultDispatcher from "../../dispatcher/dispatcher"; import { Action } from "../../dispatcher/actions"; import { UserTab } from "../views/dialogs/UserSettingsDialog"; -import MainSplit from './MainSplit'; interface IProps { groupId: string; @@ -49,11 +48,11 @@ const LegacyCommunityPreview = ({ groupId }: IProps) => { if (!groupSummary) { return
- +
- +
; } @@ -70,7 +69,7 @@ const LegacyCommunityPreview = ({ groupId }: IProps) => { return
- +
{ }
-
+
; };