Skip to content

Commit d24b06d

Browse files
committed
fix(Tooltip): lift __scopeTooltip declaration to fix ESLint no-use-before-define
1 parent 36d954d commit d24b06d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/tooltip/src/tooltip.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ import * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';
1515

1616
import type { Scope } from '@radix-ui/react-context';
1717

18-
type ScopedProps<P = {}> = P & { __scopeTooltip?: Scope };
1918
const [createTooltipContext, createTooltipScope] = createContextScope('Tooltip', [
2019
createPopperScope,
2120
]);
2221
const usePopperScope = createPopperScope();
2322

23+
type ScopedProps<P = {}> = P & { __scopeTooltip?: Scope };
24+
2425
/* -------------------------------------------------------------------------------------------------
2526
* TooltipProvider
2627
* -----------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)