initial commit (#15466)

This commit is contained in:
Phillip Kelley-Dotson 2021-06-30 03:32:57 -07:00 committed by GitHub
parent a2d69ea252
commit ebb3efce5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -160,6 +160,8 @@ IconFileNames.forEach(fileName => {
);
});
export { IconType };
export default {
...AntdEnhancedIcons,
...iconOverrides,

View File

@ -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<SVGSVGElement>;
onClick: MouseEventHandler<HTMLSpanElement>;
tooltipContent: string;
}
const RefreshLabel = ({ onClick, tooltipContent }: RefreshLabelProps) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const IconWithoutRef = React.forwardRef((props: IconProps, ref: any) => (
<Icon {...props} />
const IconWithoutRef = React.forwardRef((props: IconType, ref: any) => (
<Icons.Refresh {...props} />
));
return (
@ -37,7 +37,6 @@ const RefreshLabel = ({ onClick, tooltipContent }: RefreshLabelProps) => {
<IconWithoutRef
role="button"
onClick={onClick}
name="refresh"
css={(theme: SupersetTheme) => ({
cursor: 'pointer',
color: theme.colors.grayscale.base,