11import * as React from 'react' ;
2- import { Box , Chip , Tooltip } from '@mui/material' ;
2+ import { Box , Chip } from '@mui/material' ;
33import { CheckCircle , ReportOutlined } from '@mui/icons-material' ;
44import { type components } from '../../services/feeds/types' ;
55import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined' ;
66import { WarningContentBox } from '../../components/WarningContentBox' ;
7- import VerifiedIcon from '@mui/icons-material/Verified' ;
87import { useTranslation } from 'react-i18next' ;
9- import { verificationBadgeStyle } from '../../styles/VerificationBadge.styles' ;
108import { FeedStatusChip } from '../../components/FeedStatus' ;
119import { useRemoteConfig } from '../../context/RemoteConfigProvider' ;
10+ import OfficialChip from '../../components/OfficialChip' ;
1211
1312export interface DataQualitySummaryProps {
1413 feedStatus : components [ 'schemas' ] [ 'BasicFeed' ] [ 'status' ] ;
@@ -25,23 +24,14 @@ export default function DataQualitySummary({
2524 const { config } = useRemoteConfig ( ) ;
2625 return (
2726 < Box data-testid = 'data-quality-summary' sx = { { my : 2 } } >
28- { ( latestDataset ?. validation_report === undefined ||
29- latestDataset . validation_report === null ) && (
27+ { latestDataset ?. validation_report == undefined && (
3028 < WarningContentBox > { t ( 'errorLoadingQualityReport' ) } </ WarningContentBox >
3129 ) }
3230 < Box sx = { { display : 'flex' , gap : 1 , flexWrap : 'wrap' } } >
3331 { config . enableFeedStatusBadge && (
3432 < FeedStatusChip status = { feedStatus ?? '' } > </ FeedStatusChip >
3533 ) }
36- { isOfficialFeed && (
37- < Tooltip title = { t ( 'officialFeedTooltip' ) } placement = 'top' >
38- < Chip
39- sx = { verificationBadgeStyle }
40- icon = { < VerifiedIcon sx = { { fill : 'white' } } > </ VerifiedIcon > }
41- label = { t ( 'officialFeed' ) }
42- > </ Chip >
43- </ Tooltip >
44- ) }
34+ { isOfficialFeed && < OfficialChip > </ OfficialChip > }
4535 { latestDataset ?. validation_report !== undefined &&
4636 latestDataset . validation_report !== null && (
4737 < >
0 commit comments