From ebb3efce5a5ea62269c96ed0759d7896d169d2c7 Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Wed, 30 Jun 2021 03:32:57 -0700 Subject: [PATCH] initial commit (#15466) --- superset-frontend/src/components/Icons/index.tsx | 2 ++ superset-frontend/src/components/RefreshLabel/index.tsx | 9 ++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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,