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

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

commit 2b565b8971bbd547a835fa591c3f42d530d57104
Author: mintsweet <[email protected]>
AuthorDate: Thu Nov 23 16:08:55 2023 +1300

    refactor(config-ui): use new ui tooltip to replace old
---
 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>
   );

Reply via email to