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

View File

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