refactor: Icon to icons for certifiedIcon (#15306)
* initial commit * updated css * fix lint
This commit is contained in:
parent
a330b664c1
commit
e1ceb7f7cc
|
|
@ -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>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ const TableLabel = styled.span`
|
|||
display: flex;
|
||||
white-space: nowrap;
|
||||
|
||||
> svg,
|
||||
> small {
|
||||
svg,
|
||||
small {
|
||||
margin-right: ${({ theme }) => theme.gridUnit}px;
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ const FlexRowContainer = styled.div`
|
|||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
> svg {
|
||||
svg {
|
||||
margin-right: ${({ theme }) => theme.gridUnit}px;
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ const FlexRowContainer = styled.div`
|
|||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
> svg {
|
||||
svg {
|
||||
margin-right: ${({ theme }) => theme.gridUnit}px;
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue