[FIX] Change the active appearance for toolbox buttons (#21416)

pull/21466/head^2
Tiago Evangelista Pinto 5 years ago committed by GitHub
parent dd340e0947
commit e51164bf78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      client/views/room/Header/ToolBox/ToolBox.tsx
  2. 1
      client/views/room/lib/Toolbox/index.tsx

@ -79,14 +79,12 @@ const ToolBox: FC<ToolBoxProps> = ({ 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);
}

@ -9,7 +9,6 @@ type ToolboxHook = ({ room }: { room: IRoom }) => ToolboxActionConfig | null;
type ActionRendererProps = Omit<ToolboxActionConfig, 'renderAction' | 'groups' | 'title'> & {
className: ComponentProps<typeof Box>['className'];
tabId: ToolboxActionConfig['id'] | undefined;
index: number;
title: string;
};

Loading…
Cancel
Save