You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/11/24 02:15:04 UTC

(incubator-devlake) branch main updated: refactor(config-ui): use new ui tooltip to replace old (#6502)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 37c61091d refactor(config-ui): use new ui tooltip to replace old (#6502)
37c61091d is described below

commit 37c61091d1da929a5a0b1c241036aac5f944d12d
Author: 青湛 <0x...@gmail.com>
AuthorDate: Fri Nov 24 15:15:00 2023 +1300

    refactor(config-ui): use new ui tooltip to replace old (#6502)
---
 config-ui/src/components/tooltip/help-tooltip/index.tsx | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/config-ui/src/components/tooltip/help-tooltip/index.tsx b/config-ui/src/components/tooltip/help-tooltip/index.tsx
index 7dd18507c..ed0e0ddd9 100644
--- a/config-ui/src/components/tooltip/help-tooltip/index.tsx
+++ b/config-ui/src/components/tooltip/help-tooltip/index.tsx
@@ -16,20 +16,13 @@
  *
  */
 
-import { Icon, Tooltip, Position } from '@blueprintjs/core';
+import { QuestionCircleOutlined } from '@ant-design/icons';
+import { Tooltip } from 'antd';
+
 import styled from 'styled-components';
 
 const Wrapper = styled.span`
   margin-left: 4px;
-
-  & > .bp5-popover-target {
-    display: inline-block !important;
-
-    .bp5-icon {
-      display: block;
-      cursor: pointer;
-    }
-  }
 `;
 
 interface Props {
@@ -40,8 +33,8 @@ interface Props {
 export const HelpTooltip = ({ content, style }: Props) => {
   return (
     <Wrapper style={style}>
-      <Tooltip position={Position.TOP} content={content}>
-        <Icon icon="help" size={12} color="#94959f" />
+      <Tooltip title={content} placement="top">
+        <QuestionCircleOutlined rev={undefined} />
       </Tooltip>
     </Wrapper>
   );