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