Browse Source

style: optimized code (#41957)

pull/41959/head
ayang 2 years ago
committed by GitHub
parent
commit
9c4034a164
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      components/tooltip/index.tsx

11
components/tooltip/index.tsx

@ -331,12 +331,11 @@ const Tooltip = React.forwardRef<TooltipRef, TooltipProps>((props, ref) => {
return overlay || title || '';
}, [overlay, title]);
const memoOverlayWrapper =
typeof memoOverlay === 'function' ? (
() => <NoCompactStyle>{memoOverlay()}</NoCompactStyle>
) : (
<NoCompactStyle>{memoOverlay}</NoCompactStyle>
);
const memoOverlayWrapper = (
<NoCompactStyle>
{typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay}
</NoCompactStyle>
);
const {
getPopupContainer,

Loading…
Cancel
Save