Workplace Search remove extraneous tooltip from Recent Activity table (#111709)

* remove extraneous tooltip

remove remove extraneous tooltip from Recent Activity table on the Source Overview page

* remove unused import

* rename trigger name to something more relevant
This commit is contained in:
Kuldeep M 2021-09-09 17:09:29 +01:00 committed by GitHub
parent a7c3172285
commit 7ae423c5bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,6 @@ import {
EuiCopy,
EuiButton,
EuiButtonIcon,
EuiToolTip,
EuiSpacer,
EuiCodeBlock,
EuiPopover,
@ -30,19 +29,17 @@ export const StatusItem: React.FC<StatusItemProps> = ({ details }) => {
const closePopover = () => setIsPopoverOpen(false);
const formattedDetails = details.join('\n');
const tooltipPopoverTrigger = (
<EuiToolTip position="top" content={STATUS_POPOVER_TOOLTIP}>
<EuiButtonIcon
onClick={onButtonClick}
color="text"
iconType="questionInCircle"
aria-label={STATUS_POPOVER_TOOLTIP}
/>
</EuiToolTip>
const popoverTrigger = (
<EuiButtonIcon
onClick={onButtonClick}
color="text"
iconType="questionInCircle"
aria-label={STATUS_POPOVER_TOOLTIP}
/>
);
const infoPopover = (
<EuiPopover button={tooltipPopoverTrigger} isOpen={isPopoverOpen} closePopover={closePopover}>
<EuiPopover button={popoverTrigger} isOpen={isPopoverOpen} closePopover={closePopover}>
<EuiCodeBlock
language="bash"
fontSize="m"