From 3e910015dc2c34b6ec10441dff9f1504f848c01e Mon Sep 17 00:00:00 2001 From: Adela Almasan <88068998+adela-almasan@users.noreply.github.com> Date: Thu, 6 Mar 2025 14:12:39 -0600 Subject: [PATCH] Chore: Deprecate actions prop from context menu (#101535) --- .../src/components/DataLinks/DataLinksContextMenu.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/DataLinks/DataLinksContextMenu.tsx b/packages/grafana-ui/src/components/DataLinks/DataLinksContextMenu.tsx index 928811bb173..ed73ca99591 100644 --- a/packages/grafana-ui/src/components/DataLinks/DataLinksContextMenu.tsx +++ b/packages/grafana-ui/src/components/DataLinks/DataLinksContextMenu.tsx @@ -2,7 +2,7 @@ import { css } from '@emotion/css'; import { CSSProperties } from 'react'; import * as React from 'react'; -import { GrafanaTheme2, LinkModel } from '@grafana/data'; +import { ActionModel, GrafanaTheme2, LinkModel } from '@grafana/data'; import { selectors } from '@grafana/e2e-selectors'; import { useStyles2 } from '../../themes'; @@ -15,6 +15,10 @@ export interface DataLinksContextMenuProps { children: (props: DataLinksContextMenuApi) => JSX.Element; links: () => LinkModel[]; style?: CSSProperties; + /** + * @deprecated Will be removed in a future version + */ + actions?: ActionModel[]; } export interface DataLinksContextMenuApi {