Skip to content

Commit

Permalink
Tooltip: Fix Ariakit tooltip store usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed May 22, 2024
1 parent cef484e commit 2abcb6e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/components/src/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ function UnforwardedTooltip(
}
computedPlacement = computedPlacement || 'bottom';

// Removing the `Ariakit` namespace from the hook name allows ESLint to
// properly identify the hook, and apply the correct linting rules.
const useAriakitTooltipStore = Ariakit.useTooltipStore;
const tooltipStore = useAriakitTooltipStore( {
const tooltipStore = Ariakit.useTooltipStore( {
placement: computedPlacement,
showTimeout: delay,
} );
Expand Down

0 comments on commit 2abcb6e

Please sign in to comment.