diff --git a/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx b/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx index a2fd923a72..c6497de3b1 100644 --- a/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx +++ b/libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx @@ -38,11 +38,11 @@ export const RemixUiCheckbox = ({ }: RemixUiCheckboxProps) => { const childJSXWithTooltip = ( - +
-
- ) +
+ ) const childJSX = (
{ - const getComments = function (fileDecoration: fileDecoration) { - if (fileDecoration.comment) { - const comments = Array.isArray(fileDecoration.comment) ? fileDecoration.comment : [fileDecoration.comment] - return comments.map((comment, index) => { - return
{comment}

- }) - } + const getComments = function (fileDecoration: fileDecoration) { + if (fileDecoration.comment) { + const comments = Array.isArray(fileDecoration.comment) ? fileDecoration.comment : [fileDecoration.comment] + return comments.map((comment, index) => { + return
{comment}
+ }) } + } - return - <>{getComments(props.fileDecoration)} - - } - >
{props.icon}
+ return + +
{getComments(props.fileDecoration)}
+
+ + } + > +
{props.icon}
+
} - export default FileDecorationTooltip; \ No newline at end of file diff --git a/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx b/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx index 0f1f704653..def26b2df7 100644 --- a/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx +++ b/libs/remix-ui/helper/src/lib/components/custom-tooltip.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { Fragment } from 'react'; -import { OverlayTrigger, Tooltip, Popover } from 'react-bootstrap'; +import { OverlayTrigger, Popover } from 'react-bootstrap'; import { CustomTooltipType } from '../../types/customtooltip' @@ -8,7 +8,7 @@ export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, if (typeof tooltipText !== 'string') { const newTooltipText = React.cloneElement(tooltipText, { - className: " bg-secondary text-danger text-wrap " + className: " bg-secondary text-wrap " }) tooltipText = newTooltipText } @@ -19,8 +19,8 @@ export function CustomTooltip({ children, placement, tooltipId, tooltipClasses, placement={placement} overlay={ - - {typeof tooltipText === 'string' ? ({tooltipText}) : (tooltipText)} + + {typeof tooltipText === 'string' ? ({tooltipText}) : (tooltipText)} } 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 6bf5a07e83..ac2bd83de7 100644 --- a/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx +++ b/libs/remix-ui/panel/src/lib/plugins/panel-header.tsx @@ -2,7 +2,6 @@ import React, { useEffect, useRef, useState } from 'react' // eslint-disable-lin import { FormattedMessage } from 'react-intl' import { PluginRecord } from '../types' import './panel.css' -import { OverlayTrigger, Tooltip } from 'react-bootstrap' import { CustomTooltip } from '@remix-ui/helper' export interface RemixPanelProps { diff --git a/libs/remix-ui/tooltip-popup/src/lib/tooltip-popup.tsx b/libs/remix-ui/tooltip-popup/src/lib/tooltip-popup.tsx index 077ed1a167..96859c424a 100644 --- a/libs/remix-ui/tooltip-popup/src/lib/tooltip-popup.tsx +++ b/libs/remix-ui/tooltip-popup/src/lib/tooltip-popup.tsx @@ -4,9 +4,9 @@ import { TooltipPopupProps } from '../types' import './tooltip-popup.module.css' const popover = (title?: string, content?: string | React.ReactNode) => ( - - { title || 'Tooltip' } - + + { title || 'Tooltip' } + { content }