1- import { Badge , Popover , Space , Typography } from 'antd' ;
1+ import { Badge , Image , Popover , Space , Typography } from 'antd' ;
22import { FetchResult , MutationFunctionOptions } from '@apollo/client' ;
33import styled from 'styled-components' ;
44import React from 'react' ;
@@ -28,6 +28,12 @@ const HeaderInfoItems = styled.div`
2828 margin-top: -16px;
2929 vertical-align: top;
3030` ;
31+ const PreviewImage = styled ( Image ) `
32+ max-height: 20px;
33+ padding-top: 3px;
34+ width: auto;
35+ object-fit: contain;
36+ ` ;
3137
3238export default function DatasetHeader ( {
3339 dataset : { urn, type, description : originalDesc , ownership, deprecation, platform, editableProperties, usageStats } ,
@@ -36,6 +42,7 @@ export default function DatasetHeader({
3642 const entityRegistry = useEntityRegistry ( ) ;
3743 const isCompact = React . useContext ( CompactContext ) ;
3844 const platformName = capitalizeFirstLetter ( platform . name ) ;
45+ const platformLogoUrl = platform . info ?. logoUrl ;
3946
4047 return (
4148 < >
@@ -47,7 +54,12 @@ export default function DatasetHeader({
4754 Platform
4855 </ Typography . Text >
4956 </ div >
50- < Typography . Text style = { { fontSize : 16 } } > { platformName } </ Typography . Text >
57+ < Space direction = "horizontal" >
58+ { platformLogoUrl && (
59+ < PreviewImage preview = { false } src = { platformLogoUrl } placeholder alt = { platformName } />
60+ ) }
61+ < Typography . Text style = { { fontSize : 16 } } > { platformName } </ Typography . Text >
62+ </ Space >
5163 </ HeaderInfoItem >
5264 { usageStats ?. aggregations ?. totalSqlQueries && (
5365 < HeaderInfoItem >
0 commit comments