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

View File

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

View File

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

View File

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