diff --git a/superset-frontend/src/components/Icons/index.tsx b/superset-frontend/src/components/Icons/index.tsx index 312891ca8..6eed2e8f7 100644 --- a/superset-frontend/src/components/Icons/index.tsx +++ b/superset-frontend/src/components/Icons/index.tsx @@ -160,6 +160,8 @@ IconFileNames.forEach(fileName => { ); }); +export { IconType }; + export default { ...AntdEnhancedIcons, ...iconOverrides, diff --git a/superset-frontend/src/components/RefreshLabel/index.tsx b/superset-frontend/src/components/RefreshLabel/index.tsx index 69bb213a3..40b3215eb 100644 --- a/superset-frontend/src/components/RefreshLabel/index.tsx +++ b/superset-frontend/src/components/RefreshLabel/index.tsx @@ -19,17 +19,17 @@ import React, { MouseEventHandler } from 'react'; import { SupersetTheme } from '@superset-ui/core'; import { Tooltip } from 'src/components/Tooltip'; -import Icon, { IconProps } from 'src/components/Icon'; +import Icons, { IconType } from 'src/components/Icons'; export interface RefreshLabelProps { - onClick: MouseEventHandler; + onClick: MouseEventHandler; tooltipContent: string; } const RefreshLabel = ({ onClick, tooltipContent }: RefreshLabelProps) => { // eslint-disable-next-line @typescript-eslint/no-unused-vars - const IconWithoutRef = React.forwardRef((props: IconProps, ref: any) => ( - + const IconWithoutRef = React.forwardRef((props: IconType, ref: any) => ( + )); return ( @@ -37,7 +37,6 @@ const RefreshLabel = ({ onClick, tooltipContent }: RefreshLabelProps) => { ({ cursor: 'pointer', color: theme.colors.grayscale.base,