mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
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 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
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user