Skip to content

Commit

Permalink
fix(@air/zephyr): fix second typescript error in tooltip.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
codegeordie committed Feb 24, 2022
1 parent 22904a1 commit b86ded2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/zephyr/src/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import * as RadixTooltip from '@radix-ui/react-tooltip';
import { Side, Align } from '@radix-ui/popper';
import { Box } from './Box';
Expand All @@ -15,9 +15,8 @@ type PopperContentProps = {
avoidCollisions?: boolean;
};

export interface TooltipProps
extends PopperContentProps,
Pick<RadixTooltip.TooltipTriggerProps, 'children'> {
export interface TooltipProps extends PopperContentProps {
children: ReactElement;
/** The actual tooltip content. */
label: ReactNode;

Expand Down

0 comments on commit b86ded2

Please sign in to comment.