From b4ce4b44e86c77a6425fdb4109e2e8e224d82d6c Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 22 Sep 2022 11:03:09 +0100 Subject: [PATCH] custom tooltip for plugin info --- .../panel/src/lib/plugins/panel-header.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx index b6e8c9948a..ba729b5c0a 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useRef, useState } from 'react' // eslint-disable-line import { PluginRecord } from '../types' import './panel.css' +import { OverlayTrigger, Tooltip } from 'react-bootstrap' export interface RemixPanelProps { plugins: Record; @@ -32,9 +33,15 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => {
{plugin?.profile?.maintainedBy?.toLowerCase() === "remix" && ()}
-
- -
+ + Plugin info + + } placement={'right-end'}> +
+ +
+
@@ -57,7 +64,7 @@ const RemixUIPanelHeader = (props: RemixPanelProps) => { { plugin?.profile.description } } {plugin?.profile?.repo && - + Make an issue }