From e51164bf78b7facc8b438cc020afc20fb0f8af43 Mon Sep 17 00:00:00 2001 From: Tiago Evangelista Pinto Date: Tue, 20 Apr 2021 00:39:18 -0300 Subject: [PATCH] [FIX] Change the active appearance for toolbox buttons (#21416) --- client/views/room/Header/ToolBox/ToolBox.tsx | 4 +--- client/views/room/lib/Toolbox/index.tsx | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/client/views/room/Header/ToolBox/ToolBox.tsx b/client/views/room/Header/ToolBox/ToolBox.tsx index ef634b5be42..358dc3d322e 100644 --- a/client/views/room/Header/ToolBox/ToolBox.tsx +++ b/client/views/room/Header/ToolBox/ToolBox.tsx @@ -79,14 +79,12 @@ const ToolBox: FC = ({ className }) => { icon, 'title': t(title), className, - 'tabId': id, index, - 'primary': id === tab?.id, + 'info': id === tab?.id, 'data-toolbox': index, action, 'key': id, }; - if (renderAction) { return renderAction(props); } diff --git a/client/views/room/lib/Toolbox/index.tsx b/client/views/room/lib/Toolbox/index.tsx index e52fd317987..a50a69e31a1 100644 --- a/client/views/room/lib/Toolbox/index.tsx +++ b/client/views/room/lib/Toolbox/index.tsx @@ -9,7 +9,6 @@ type ToolboxHook = ({ room }: { room: IRoom }) => ToolboxActionConfig | null; type ActionRendererProps = Omit & { className: ComponentProps['className']; - tabId: ToolboxActionConfig['id'] | undefined; index: number; title: string; };