clean installation flat view
This commit is contained in:
parent
8c01912947
commit
ec0e8258b2
|
|
@ -371,27 +371,7 @@ const FlatInstallationView = (props: FlatInstallationViewProps) => {
|
||||||
)}
|
)}
|
||||||
{showAnomalyColumn && (
|
{showAnomalyColumn && (
|
||||||
<TableCell>
|
<TableCell>
|
||||||
{(() => {
|
{anomalyMap.has(installation.id) && (
|
||||||
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'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<WarningAmberIcon
|
<WarningAmberIcon
|
||||||
style={{
|
style={{
|
||||||
width: '20px',
|
width: '20px',
|
||||||
|
|
@ -399,17 +379,7 @@ const FlatInstallationView = (props: FlatInstallationViewProps) => {
|
||||||
color: '#f7b34d'
|
color: '#f7b34d'
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Typography
|
)}
|
||||||
variant="body2"
|
|
||||||
color="text.primary"
|
|
||||||
noWrap
|
|
||||||
sx={{ fontSize: 'small' }}
|
|
||||||
>
|
|
||||||
{a.lastDetectedAt} · {a.lastVoltage.toFixed(2)} V
|
|
||||||
</Typography>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})()}
|
|
||||||
</TableCell>
|
</TableCell>
|
||||||
)}
|
)}
|
||||||
</HoverableTableRow>
|
</HoverableTableRow>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue