Skip to content

Commit

Permalink
pnpm prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lhilgert9 committed May 10, 2024
1 parent 12e084f commit c76a3fc
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/mui-material/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,18 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) {
}
}

const ownerState = React.useMemo(()=>({
...props,
isRtl,
arrow,
disableInteractive,
placement,
PopperComponentProp,
touch: ignoreNonTouchEvents.current,
}), [PopperComponentProp, arrow, disableInteractive, isRtl, placement, props]);
const ownerState = React.useMemo(
() => ({
...props,
isRtl,
arrow,
disableInteractive,
placement,
PopperComponentProp,
touch: ignoreNonTouchEvents.current,
}),
[PopperComponentProp, arrow, disableInteractive, isRtl, placement, props],
);

const popperOptions = React.useMemo(() => {
let tooltipModifiers = [
Expand All @@ -604,7 +607,7 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) {
},
},
];
const resolvedSlotProps = resolveComponentProps(slotProps.popper, ownerState)
const resolvedSlotProps = resolveComponentProps(slotProps.popper, ownerState);
if (resolvedSlotProps?.popperOptions?.modifiers || PopperProps?.popperOptions?.modifiers) {
tooltipModifiers = tooltipModifiers.concat(
resolvedSlotProps?.popperOptions?.modifiers ?? PopperProps?.popperOptions.modifiers,
Expand Down

0 comments on commit c76a3fc

Please sign in to comment.