mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(explore): column data type tooltip format (#30588)
This commit is contained in:
committed by
GitHub
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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user