diff --git a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap index b855f47d6..38d69afad 100644 --- a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap @@ -94,48 +94,6 @@ exports[`Visualization Container Component renders add visualization container 1 - -
- - - - - - - -
-
diff --git a/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx b/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx index 669eee906..365fe2b6f 100644 --- a/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx +++ b/public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx @@ -5,10 +5,8 @@ import { EuiSmallButton, - EuiSmallButtonIcon, EuiCodeBlock, EuiContextMenuItem, - EuiContextMenuPanel, EuiFlexGroup, EuiFlexItem, EuiIcon, @@ -19,7 +17,6 @@ import { EuiModalHeader, EuiModalHeaderTitle, EuiPanel, - EuiPopover, EuiSpacer, EuiText, EuiToolTip, @@ -103,7 +100,6 @@ export const VisualizationContainer = ({ onEditClick, cloneVisualization, showFlyout, - removeVisualization, catalogVisualization, inlineEditor, actionMenuType, @@ -116,7 +112,6 @@ export const VisualizationContainer = ({ const [visualizationData, setVisualizationData] = useState([]); const [isLoading, setIsLoading] = useState(true); const [isError, setIsError] = useState({} as VizContainerError); - const onActionsMenuClick = () => setIsPopoverOpen((currPopoverOpen) => !currPopoverOpen); const closeActionsMenu = () => setIsPopoverOpen(false); const { http, pplService } = coreRefs; const { setToast } = useToast(); @@ -373,37 +368,6 @@ export const VisualizationContainer = ({ - - {editMode ? ( - { - removeVisualization(visualizationId); - }} - /> - ) : ( - - } - isOpen={isPopoverOpen} - closePopover={closeActionsMenu} - anchorPosition="downLeft" - panelPaddingSize="none" - > - - - )} - {inlineEditor}