You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Fixup ContextMenuTooltipButton.tsx
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -21,14 +21,12 @@ import React from "react";
|
|||||||
import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton";
|
||||||
|
|
||||||
interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> {
|
interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> {
|
||||||
label?: string;
|
|
||||||
// whether or not the context menu is currently open
|
// whether or not the context menu is currently open
|
||||||
isExpanded: boolean;
|
isExpanded: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Semantic component for representing the AccessibleButton which launches a <ContextMenu />
|
// Semantic component for representing the AccessibleButton which launches a <ContextMenu />
|
||||||
export const ContextMenuTooltipButton: React.FC<IProps> = ({
|
export const ContextMenuTooltipButton: React.FC<IProps> = ({
|
||||||
label,
|
|
||||||
isExpanded,
|
isExpanded,
|
||||||
children,
|
children,
|
||||||
onClick,
|
onClick,
|
||||||
@@ -40,8 +38,6 @@ export const ContextMenuTooltipButton: React.FC<IProps> = ({
|
|||||||
{...props}
|
{...props}
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
onContextMenu={onContextMenu || onClick}
|
onContextMenu={onContextMenu || onClick}
|
||||||
title={label}
|
|
||||||
aria-label={label}
|
|
||||||
aria-haspopup={true}
|
aria-haspopup={true}
|
||||||
aria-expanded={isExpanded}
|
aria-expanded={isExpanded}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user