mirror of https://github.com/apache/superset.git
refactor: icon to icons for popoversection (#15461)
This commit is contained in:
parent
83d50dd9fd
commit
07852c3528
|
@ -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
|
||||
}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue