Skip to content

Commit

Permalink
refactor: icon to icons for popoversection (apache#15461)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson authored Jul 5, 2021
1 parent 83d50dd commit 07852c3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions superset-frontend/src/components/PopoverSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
}
/>
Expand Down

0 comments on commit 07852c3

Please sign in to comment.