Skip to content

Commit

Permalink
ButtonBase linting error from IconProps
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettbear committed Jul 25, 2023
1 parent a10fb75 commit c1ca1dc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import type {
} from '../box';
import { IconColor } from '../../../helpers/constants/design-system';
import { TextDirection, TextProps } from '../text';
import { IconName, IconProps } from '../icon';
import { IconName } from '../icon';
import type { IconProps } from '../icon';

export enum ButtonBaseSize {
Sm = 'sm',
Expand Down Expand Up @@ -52,7 +53,7 @@ export interface ButtonBaseStyleUtilityProps extends StyleUtilityProps {
/**
* iconProps accepts all the props from Icon
*/
startIconProps?: IconProps;
startIconProps?: IconProps<'span'>;
/**
* Add icon to end (right side) of button text passing icon name
* The name of the icon to display. Should be one of IconName
Expand All @@ -61,11 +62,11 @@ export interface ButtonBaseStyleUtilityProps extends StyleUtilityProps {
/**
* iconProps accepts all the props from Icon
*/
endIconProps?: IconProps;
endIconProps?: IconProps<'span'>;
/**
* iconLoadingProps accepts all the props from Icon
*/
iconLoadingProps?: IconProps;
iconLoadingProps?: IconProps<'span'>;
/**
* Boolean to show loading spinner in button
*/
Expand Down

0 comments on commit c1ca1dc

Please sign in to comment.