refactor: icon to icons for popoversection (#15461)

This commit is contained in:
Phillip Kelley-Dotson 2021-07-05 01:00:37 -07:00 committed by GitHub
parent 83d50dd9fd
commit 07852c3528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -19,7 +19,7 @@
import React, { MouseEventHandler, ReactNode } from 'react';
import { useTheme } from '@superset-ui/core';
import { Tooltip } from 'src/components/Tooltip';
import Icon from 'src/components/Icon';
import Icons from 'src/components/Icons';
export interface PopoverSectionProps {
title: string;
@ -57,19 +57,17 @@ export default function PopoverSection({
<strong data-test="popover-title">{title}</strong>
{info && (
<Tooltip title={info} css={{ marginLeft: theme.gridUnit }}>
<Icon
<Icons.InfoSolidSmall
role="img"
name="info-solid"
width={14}
height={14}
color={theme.colors.grayscale.light1}
iconColor={theme.colors.grayscale.light1}
/>
</Tooltip>
)}
<Icon
<Icons.Check
role="img"
name="check"
color={
iconColor={
isSelected ? theme.colors.primary.base : theme.colors.grayscale.base
}
/>