Skip to content

Commit

Permalink
fix: pass type prop correctly to button
Browse files Browse the repository at this point in the history
  • Loading branch information
ahennr committed Jan 24, 2025
1 parent bbf3abb commit cc2ab13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Button/SimpleButton/SimpleButton.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import * as React from 'react';

import { Button, Tooltip } from 'antd';
import { ButtonProps } from 'antd/lib/button';
import { AbstractTooltipProps, TooltipPlacement } from 'antd/lib/tooltip';
import * as React from 'react';

import { CSS_PREFIX } from '../../constants';

export type OwnProps = {
export interface OwnProps {
/**
* Additional [antd tooltip](https://ant.design/components/tooltip/)
* properties to pass to the tooltip component. Note: The props `title`
Expand All @@ -21,7 +22,7 @@ export type OwnProps = {
* The position of the tooltip.
*/
tooltipPlacement?: TooltipPlacement;
};
}

export type SimpleButtonProps = OwnProps & ButtonProps;

Expand Down

0 comments on commit cc2ab13

Please sign in to comment.