diff --git a/public/app/features/plugins/PluginStateInfo.tsx b/public/app/features/plugins/PluginStateInfo.tsx index db09c38917e..fe8ce13095e 100644 --- a/public/app/features/plugins/PluginStateInfo.tsx +++ b/public/app/features/plugins/PluginStateInfo.tsx @@ -1,18 +1,29 @@ import React, { FC, useContext } from 'react'; import { css } from 'emotion'; import { PluginState, Tooltip, ThemeContext } from '@grafana/ui'; +import { PopperContent } from '@grafana/ui/src/components/Tooltip/PopperController'; interface Props { state?: PluginState; } -function getPluginStateInfoText(state?: PluginState): string | null { +function getPluginStateInfoText(state?: PluginState): PopperContent | null { switch (state) { case PluginState.alpha: - return 'Plugin in alpha state. Means 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 'Plugin in beta state. Means there could be bugs and minor breaking changes.'; + return ( +
+
Beta Plugin
+

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

+
+ ); } return null; } @@ -34,10 +45,11 @@ const PluginStateinfo: FC = props => { font-size: 13px; padding: 4px 8px; margin-left: 16px; + cursor: help; `; return ( - +
{props.state}