mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 20:25:29 +08:00
chore: avoid memo override exported component displayName
This commit is contained in:
@@ -52,7 +52,7 @@ const getRect = (ref: MutableRefObject<HTMLElement | null>): ReactiveDomReact =>
|
||||
}
|
||||
}
|
||||
|
||||
const TooltipContent: React.FC<React.PropsWithChildren<Props>> = React.memo(({
|
||||
const TooltipContent: React.FC<React.PropsWithChildren<Props>> = ({
|
||||
children, parent, visible, offset, placement, type, className, hideArrow,
|
||||
}) => {
|
||||
const theme = useTheme()
|
||||
@@ -112,6 +112,6 @@ const TooltipContent: React.FC<React.PropsWithChildren<Props>> = React.memo(({
|
||||
</div>
|
||||
</CSSTransition>
|
||||
), el)
|
||||
})
|
||||
}
|
||||
|
||||
export default TooltipContent
|
||||
|
||||
@@ -42,4 +42,4 @@ const TooltipIcon: React.FC<Props> = ({
|
||||
)
|
||||
}
|
||||
|
||||
export default TooltipIcon
|
||||
export default React.memo(TooltipIcon)
|
||||
|
||||
Reference in New Issue
Block a user