Fixup ContextMenuTooltipButton.tsx

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-17 18:15:08 +01:00
parent a8f5731c07
commit 3b5a02d804
1 changed files with 0 additions and 4 deletions

View File

@ -21,14 +21,12 @@ import React from "react";
import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton";
interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> {
label?: string;
// whether or not the context menu is currently open
isExpanded: boolean;
}
// Semantic component for representing the AccessibleButton which launches a <ContextMenu />
export const ContextMenuTooltipButton: React.FC<IProps> = ({
label,
isExpanded,
children,
onClick,
@ -40,8 +38,6 @@ export const ContextMenuTooltipButton: React.FC<IProps> = ({
{...props}
onClick={onClick}
onContextMenu={onContextMenu || onClick}
title={label}
aria-label={label}
aria-haspopup={true}
aria-expanded={isExpanded}
>