From 0012d2d81fee889665d515226062c0eb122b490a Mon Sep 17 00:00:00 2001 From: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Tue, 31 May 2022 09:40:03 +0100 Subject: [PATCH] UI/Button: Remove deprecated "link" variant (#49843) --- .../src/components/Button/Button.tsx | 31 ++++--------------- .../input-datasource/src/InputQueryEditor.tsx | 2 +- .../components/FolderFilter/FolderFilter.tsx | 2 +- .../PanelTypeFilter/PanelTypeFilter.tsx | 2 +- .../serviceaccounts/ServiceAccountProfile.tsx | 2 +- .../configuration/MappingsConfiguration.tsx | 2 +- .../plugins/panel/nodeGraph/ViewControls.tsx | 2 +- 7 files changed, 12 insertions(+), 31 deletions(-) diff --git a/packages/grafana-ui/src/components/Button/Button.tsx b/packages/grafana-ui/src/components/Button/Button.tsx index 978d7dea8fa..2479687518a 100644 --- a/packages/grafana-ui/src/components/Button/Button.tsx +++ b/packages/grafana-ui/src/components/Button/Button.tsx @@ -10,7 +10,7 @@ import { ComponentSize } from '../../types/size'; import { getPropertiesForButtonSize } from '../Forms/commonStyles'; import { Icon } from '../Icon/Icon'; -export type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link'; +export type ButtonVariant = 'primary' | 'secondary' | 'destructive'; export const allButtonVariants: ButtonVariant[] = ['primary', 'secondary', 'destructive']; export type ButtonFill = 'solid' | 'outline' | 'text'; export const allButtonFills: ButtonFill[] = ['solid', 'outline', 'text']; @@ -53,11 +53,6 @@ export const Button = React.forwardRef( iconOnly: !children, }); - deprecatedPropWarning( - variant === 'link', - `${Button.displayName}: Prop variant="link" is deprecated. Please use fill="text".` - ); - return (

diff --git a/public/app/plugins/panel/nodeGraph/ViewControls.tsx b/public/app/plugins/panel/nodeGraph/ViewControls.tsx index 1b3a7316014..ea460af3db4 100644 --- a/public/app/plugins/panel/nodeGraph/ViewControls.tsx +++ b/public/app/plugins/panel/nodeGraph/ViewControls.tsx @@ -75,7 +75,7 @@ export function ViewControls>(props: Props {allowConfiguration && ( - )}