diff --git a/packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx b/packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx index 5951c5446d8..a13efabc4c2 100644 --- a/packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx +++ b/packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx @@ -1,22 +1,15 @@ import React, { FC, useContext } from 'react'; import { css, cx } from 'emotion'; import { PluginState, ThemeContext } from '../../index'; -import { Tooltip } from '../index'; interface Props { state?: PluginState; - text?: JSX.Element; + text?: string; className?: string; } export const AlphaNotice: FC = ({ state, text, className }) => { - const tooltipContent = text || ( -
-
Alpha Feature
-

This feature is a work in progress and updates may include breaking changes.

-
- ); - + const tooltipContent = text || 'This feature is a work in progress and updates may include breaking changes'; const theme = useContext(ThemeContext); const styles = cx( @@ -35,10 +28,8 @@ export const AlphaNotice: FC = ({ state, text, className }) => { ); return ( - -
- {state} -
-
+
+ {state} +
); }; diff --git a/public/app/features/dashboard/panel_editor/QueriesTab.tsx b/public/app/features/dashboard/panel_editor/QueriesTab.tsx index dacdbcea94b..98d68f3d90b 100644 --- a/public/app/features/dashboard/panel_editor/QueriesTab.tsx +++ b/public/app/features/dashboard/panel_editor/QueriesTab.tsx @@ -287,7 +287,7 @@ export class QueriesTab extends PureComponent { - Transform query results + Query results { return Object.keys(this.allOptions).map(key => { const options = this.allOptions[key]; const panelKey = options.panelKey || key; + // @ts-ignore const value = this.state[panelKey]; - if (value || queryOptions[key]) { + + if (queryOptions[key]) { return ( -
Alpha Plugin
-

This plugin is a work in progress and updates may include breaking changes.

- - ); - + return 'Alpha Plugin: This plugin is a work in progress and updates may include breaking changes'; case PluginState.beta: - return ( -
-
Beta Plugin
-

There could be bugs and minor breaking changes to this plugin.

-
- ); + return 'Beta Plugin: There could be bugs and minor breaking changes to this plugin'; } return null; }