diff --git a/packages/superset-ui-chart-controls/src/components/ColumnOption.tsx b/packages/superset-ui-chart-controls/src/components/ColumnOption.tsx index b9a9c4509f..7fac985ebb 100644 --- a/packages/superset-ui-chart-controls/src/components/ColumnOption.tsx +++ b/packages/superset-ui-chart-controls/src/components/ColumnOption.tsx @@ -17,9 +17,11 @@ * under the License. */ import React from 'react'; +import { styled } from '@superset-ui/core'; import { Tooltip } from './Tooltip'; import { ColumnTypeLabel } from './ColumnTypeLabel'; import InfoTooltipWithTrigger from './InfoTooltipWithTrigger'; +import CertifiedIconWithTooltip from './CertifiedIconWithTooltip'; import { ColumnMeta } from '../types'; export type ColumnOptionProps = { @@ -29,6 +31,12 @@ export type ColumnOptionProps = { labelRef?: React.RefObject; }; +const StyleOverrides = styled.span` + svg { + margin-right: ${({ theme }) => theme.gridUnit}px; + } +`; + export function ColumnOption({ column, labelRef, @@ -40,8 +48,15 @@ export function ColumnOption({ const type = hasExpression ? 'expression' : type_generic; return ( - + {showType && type !== undefined && } + {column.is_certified && ( + + )} {showTooltip ? ( )} - + ); }