1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

ButtonBase linting error from IconProps (#20187)

This commit is contained in:
Garrett Bear 2023-07-25 15:39:52 -07:00 committed by GitHub
parent a942459b36
commit d6cb724323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
@ -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
@ -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
*/