diff --git a/packages/components/src/IconButton/IconButton.d.ts b/packages/components/src/IconButton/IconButton.d.ts index 103e3d8a..9fa48f1f 100644 --- a/packages/components/src/IconButton/IconButton.d.ts +++ b/packages/components/src/IconButton/IconButton.d.ts @@ -23,5 +23,6 @@ export interface IconButtonATypeProps extends IconButtonBaseProps, Omit>; +export declare const StyledIconButton: import("styled-components").StyledComponent<"button", any, IconButtonProps, never>; declare const IconButton: React.FC; export default IconButton; diff --git a/packages/components/src/IconButton/IconButton.tsx b/packages/components/src/IconButton/IconButton.tsx index ffc468c6..b71413cc 100644 --- a/packages/components/src/IconButton/IconButton.tsx +++ b/packages/components/src/IconButton/IconButton.tsx @@ -257,12 +257,7 @@ export const iconButtonStyles = css` `} `; -const StyledIconButton = styled( - ({ expanded, icon, loading, ...rest }: IconButtonProps) => ( - // eslint-disable-next-line react/button-has-type -