clean installation flat view

This commit is contained in:
Yinyin Liu 2026-06-05 09:33:12 +02:00
parent 8c01912947
commit ec0e8258b2
1 changed files with 9 additions and 39 deletions

View File

@ -371,27 +371,7 @@ const FlatInstallationView = (props: FlatInstallationViewProps) => {
)}
{showAnomalyColumn && (
<TableCell>
{(() => {
const a = anomalyMap.get(installation.id);
if (!a) {
return (
<Typography
variant="body2"
color="text.secondary"
sx={{ fontSize: 'small' }}
>
</Typography>
);
}
return (
<div
style={{
display: 'flex',
alignItems: 'center',
gap: '6px'
}}
>
{anomalyMap.has(installation.id) && (
<WarningAmberIcon
style={{
width: '20px',
@ -399,17 +379,7 @@ const FlatInstallationView = (props: FlatInstallationViewProps) => {
color: '#f7b34d'
}}
/>
<Typography
variant="body2"
color="text.primary"
noWrap
sx={{ fontSize: 'small' }}
>
{a.lastDetectedAt} · {a.lastVoltage.toFixed(2)} V
</Typography>
</div>
);
})()}
)}
</TableCell>
)}
</HoverableTableRow>