Skip to content

Commit

Permalink
fix(Popover): fix content prop error (#6612)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed May 3, 2023
1 parent 14add73 commit 3d1df53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Popover.tsx
Expand Up @@ -12,7 +12,7 @@ import {
} from './helpers';

export interface PopoverProps
extends React.ComponentPropsWithoutRef<'div'>,
extends Omit<React.ComponentPropsWithoutRef<'div'>, 'content'>,
BsPrefixPropsWithChildren {
id: string;
placement?: Placement;
Expand Down Expand Up @@ -77,7 +77,7 @@ const defaultProps = {
placement: 'right',
};

const Popover: Popover = (React.forwardRef<HTMLDivElement, PopoverProps>(
const Popover: Popover = React.forwardRef<HTMLDivElement, PopoverProps>(
(
{
bsPrefix,
Expand Down Expand Up @@ -114,7 +114,7 @@ const Popover: Popover = (React.forwardRef<HTMLDivElement, PopoverProps>(
</div>
);
},
) as unknown) as Popover;
) as unknown as Popover;

Popover.propTypes = propTypes;
Popover.defaultProps = defaultProps as any;
Expand Down

0 comments on commit 3d1df53

Please sign in to comment.