From a2bea649f6e800506eeb6f28c584a55415128274 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 13 Jun 2025 10:29:13 +0100 Subject: [PATCH] Hide add integrations button based on UIComponent.AddIntegrations (#30140) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/right_panel/ExtensionsCard.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/views/right_panel/ExtensionsCard.tsx b/src/components/views/right_panel/ExtensionsCard.tsx index 58c2435e72..448917290a 100644 --- a/src/components/views/right_panel/ExtensionsCard.tsx +++ b/src/components/views/right_panel/ExtensionsCard.tsx @@ -27,6 +27,8 @@ import AccessibleButton from "../elements/AccessibleButton"; import WidgetAvatar from "../avatars/WidgetAvatar"; import { IntegrationManagers } from "../../../integrations/IntegrationManagers"; import EmptyState from "./EmptyState"; +import { shouldShowComponent } from "../../../customisations/helpers/UIComponents.ts"; +import { UIComponent } from "../../../settings/UIFeature.ts"; interface Props { room: Room; @@ -191,9 +193,11 @@ const ExtensionsCard: React.FC = ({ room, onClose }) => { return ( - + {shouldShowComponent(UIComponent.AddIntegrations) && ( + + )} {body} );