clean installation flat view
This commit is contained in:
parent
8c01912947
commit
ec0e8258b2
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue