Skip to content

Commit

Permalink
fix(#2501): Since React 18, errors on Popover and Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed May 25, 2022
1 parent 1179b87 commit 1110c9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions types/lib/Popover.d.ts
Expand Up @@ -2,13 +2,7 @@ import * as React from 'react';
import type { Modifier, Boundary, Placement } from '@popperjs/core';
import { CSSModule } from './utils';

interface PopoverChildrenRenderProps {
update: () => void;
}

export type PopoverChildren =
| ((props: PopoverChildrenRenderProps) => React.ReactNode)
| React.ReactNode;
export type PopoverChildren = React.ReactNode;

export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
Expand Down
8 changes: 1 addition & 7 deletions types/lib/Tooltip.d.ts
Expand Up @@ -2,13 +2,7 @@ import * as React from 'react';
import type { Modifier, Placement } from '@popperjs/core';
import { CSSModule } from './utils';

interface TooltipChildrenRenderProps {
update: () => void;
}

export type TooltipChildren =
| ((props: TooltipChildrenRenderProps) => React.ReactNode)
| React.ReactNode;
export type TooltipChildren = React.ReactNode;

export interface UncontrolledTooltipProps
extends React.HTMLAttributes<HTMLElement> {
Expand Down

0 comments on commit 1110c9c

Please sign in to comment.