From 514a4e6daad75512aeb6bf5024cacf00ec5dbe5b Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Mon, 18 Nov 2024 16:36:20 +0700 Subject: [PATCH] update slots name --- packages/mui-material/src/Tooltip/Tooltip.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/mui-material/src/Tooltip/Tooltip.js b/packages/mui-material/src/Tooltip/Tooltip.js index 696fa8eed95898..289bf8a0a47f07 100644 --- a/packages/mui-material/src/Tooltip/Tooltip.js +++ b/packages/mui-material/src/Tooltip/Tooltip.js @@ -723,20 +723,20 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { className: clsx(classes.popper, PopperProps?.className), }); - const [TooltipTransitionSlot, transitionSlotProps] = useSlot('transition', { + const [TransitionSlot, transitionSlotProps] = useSlot('transition', { elementType: Grow, externalForwardedProps, ownerState, }); - const [TooltipTooltipSlot, tooltipSlotProps] = useSlot('tooltip', { + const [TooltipSlot, tooltipSlotProps] = useSlot('tooltip', { elementType: TooltipTooltip, className: classes.tooltip, externalForwardedProps, ownerState, }); - const [TooltipArrowSlot, arrowSlotProps] = useSlot('arrow', { + const [ArrowSlot, arrowSlotProps] = useSlot('arrow', { elementType: TooltipArrow, className: classes.arrow, externalForwardedProps, @@ -773,16 +773,16 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { popperOptions={popperOptions} > {({ TransitionProps: TransitionPropsInner }) => ( - - + {title} - {arrow ? : null} - - + {arrow ? : null} + + )}