Skip to content

Commit

Permalink
INC
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Aug 21, 2021
1 parent 888e88f commit 3b1300f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/tooltip/ActionTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode, useContext, HTMLProps, CSSProperties } from 'react';
import { useTooltip } from '@react-aria/tooltip';
import { classNames } from '../utils';
import { PlacementAxis } from '../types';
import { PlacementAxis, DOMRef } from '../types';
import { mergeProps } from '@react-aria/utils';
import { TooltipContext } from './context';
import { Text } from '../content';
Expand All @@ -28,7 +28,7 @@ interface ActionTooltipProps extends HTMLProps<HTMLDivElement> {
* @param props
* @returns
*/
function ActionTooltip(props: ActionTooltipProps) {
function ActionTooltip(props: ActionTooltipProps, _ref: DOMRef) {
const {
ref: overlayRef,
arrowProps,
Expand Down
4 changes: 2 additions & 2 deletions src/tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactNode, useContext, HTMLProps } from 'react';
import { useTooltip } from '@react-aria/tooltip';
import { classNames } from '../utils';
import { PlacementAxis } from '../types';
import { PlacementAxis, DOMRef } from '../types';
import { mergeProps } from '@react-aria/utils';
import { TooltipContext } from './context';
import { Text } from '../content';
Expand All @@ -17,7 +17,7 @@ interface TooltipProps extends HTMLProps<HTMLDivElement> {
children: ReactNode;
}

function Tooltip(props: TooltipProps) {
function Tooltip(props: TooltipProps, _ref: DOMRef) {
const {
ref: overlayRef,
arrowProps,
Expand Down
11 changes: 0 additions & 11 deletions test/Button.test.tsx

This file was deleted.

0 comments on commit 3b1300f

Please sign in to comment.