refactor: Icon to icons for certifiedIcon (#15306)

* initial commit

* updated css

* fix lint
This commit is contained in:
Phillip Kelley-Dotson 2021-06-23 13:49:17 -07:00 committed by GitHub
parent a330b664c1
commit e1ceb7f7cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

View File

@ -18,7 +18,7 @@
*/
import React from 'react';
import { t, supersetTheme } from '@superset-ui/core';
import Icon from 'src/components/Icon';
import Icons from 'src/components/Icons';
import { Tooltip } from 'src/components/Tooltip';
export interface CertifiedIconProps {
@ -46,11 +46,10 @@ function CertifiedIcon({
</>
}
>
<Icon
color={supersetTheme.colors.primary.base}
<Icons.Certified
iconColor={supersetTheme.colors.primary.base}
height={size}
width={size}
name="certified"
/>
</Tooltip>
);

View File

@ -72,8 +72,8 @@ const TableLabel = styled.span`
display: flex;
white-space: nowrap;
> svg,
> small {
svg,
small {
margin-right: ${({ theme }) => theme.gridUnit}px;
}
`;

View File

@ -75,7 +75,7 @@ const FlexRowContainer = styled.div`
align-items: center;
display: flex;
> svg {
svg {
margin-right: ${({ theme }) => theme.gridUnit}px;
}
`;

View File

@ -66,7 +66,7 @@ const FlexRowContainer = styled.div`
align-items: center;
display: flex;
> svg {
svg {
margin-right: ${({ theme }) => theme.gridUnit}px;
}
`;