Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Tooltip: Fix Ariakit tooltip store usage
  • Loading branch information
tyxla committed May 22, 2024
commit 2abcb6e34ad19f67558f72c6230271593d985a0b
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