fix(explore): column data type tooltip format (#30588)
This commit is contained in:
parent
eb14c762af
commit
73768f6313
|
|
@ -55,8 +55,7 @@ const TooltipSection = ({
|
|||
text: ReactNode;
|
||||
}) => (
|
||||
<TooltipSectionWrapper>
|
||||
<TooltipSectionLabel>{label}</TooltipSectionLabel>
|
||||
<span>{text}</span>
|
||||
<TooltipSectionLabel>{label}</TooltipSectionLabel>: <span>{text}</span>
|
||||
</TooltipSectionWrapper>
|
||||
);
|
||||
|
||||
|
|
@ -71,12 +70,7 @@ export const getColumnTypeTooltipNode = (column: ColumnMeta): ReactNode => {
|
|||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<TooltipSection
|
||||
label={t('Column datatype')}
|
||||
text={column.type.toLowerCase()}
|
||||
/>
|
||||
);
|
||||
return <TooltipSection label={t('Column type')} text={column.type} />;
|
||||
};
|
||||
|
||||
export const getColumnTooltipNode = (
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ test('should get column datatype rendered as tooltip when column has a type', ()
|
|||
</>,
|
||||
);
|
||||
|
||||
expect(screen.getByText('Column datatype')).toBeVisible();
|
||||
expect(screen.getByText('Column type')).toBeVisible();
|
||||
expect(screen.getByText('text')).toBeVisible();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue