remove Battery Temperature in Overview and Detailed Battery View
This commit is contained in:
parent
f8b9428ce4
commit
5359ebba70
|
|
@ -634,66 +634,66 @@ function DetailedBatteryViewSodistore(
|
||||||
{/*----------------------------------------------------------------------------------------------------------------------------------*/}
|
{/*----------------------------------------------------------------------------------------------------------------------------------*/}
|
||||||
{/*Temperature List*/}
|
{/*Temperature List*/}
|
||||||
|
|
||||||
<Card
|
{/*<Card*/}
|
||||||
sx={{
|
{/* sx={{*/}
|
||||||
overflow: 'visible',
|
{/* overflow: 'visible',*/}
|
||||||
marginTop: '20px',
|
{/* marginTop: '20px',*/}
|
||||||
marginLeft: '20px',
|
{/* marginLeft: '20px',*/}
|
||||||
display: 'flex',
|
{/* display: 'flex',*/}
|
||||||
flexDirection: 'column',
|
{/* flexDirection: 'column',*/}
|
||||||
alignItems: 'center',
|
{/* alignItems: 'center',*/}
|
||||||
border: '2px solid #ccc',
|
{/* border: '2px solid #ccc',*/}
|
||||||
borderRadius: '12px',
|
{/* borderRadius: '12px',*/}
|
||||||
height: '270px'
|
{/* height: '270px'*/}
|
||||||
}}
|
{/* }}*/}
|
||||||
>
|
{/*>*/}
|
||||||
<Typography
|
{/* <Typography*/}
|
||||||
variant="h6"
|
{/* variant="h6"*/}
|
||||||
component="div"
|
{/* component="div"*/}
|
||||||
sx={{
|
{/* sx={{*/}
|
||||||
marginTop: '10px',
|
{/* marginTop: '10px',*/}
|
||||||
borderBottom: '1px solid #ccc',
|
{/* borderBottom: '1px solid #ccc',*/}
|
||||||
fontWeight: 'bold'
|
{/* fontWeight: 'bold'*/}
|
||||||
}}
|
{/* }}*/}
|
||||||
>
|
{/* >*/}
|
||||||
Battery Temperatures
|
{/* Battery Temperatures*/}
|
||||||
</Typography>
|
{/* </Typography>*/}
|
||||||
|
|
||||||
<TableContainer
|
{/* <TableContainer*/}
|
||||||
component={Paper}
|
{/* component={Paper}*/}
|
||||||
sx={{
|
{/* sx={{*/}
|
||||||
marginTop: '20px',
|
{/* marginTop: '20px',*/}
|
||||||
width: '100%',
|
{/* width: '100%',*/}
|
||||||
maxHeight: '270px', // scrolling threshold
|
{/* maxHeight: '270px',*/}
|
||||||
overflowY: 'auto'
|
{/* overflowY: 'auto'*/}
|
||||||
}}
|
{/* }}*/}
|
||||||
>
|
{/* >*/}
|
||||||
<Table size="medium" stickyHeader aria-label="temperature table">
|
{/* <Table size="medium" stickyHeader aria-label="temperature table">*/}
|
||||||
<TableBody>
|
{/* <TableBody>*/}
|
||||||
{Object.entries(
|
{/* {Object.entries(*/}
|
||||||
props.batteryData.BatteryDeligreenDataRecord
|
{/* props.batteryData.BatteryDeligreenDataRecord*/}
|
||||||
.TemperaturesList || {}
|
{/* .TemperaturesList || {}*/}
|
||||||
).map(([label, value]) => (
|
{/* ).map(([label, value]) => (*/}
|
||||||
<TableRow key={label}>
|
{/* <TableRow key={label}>*/}
|
||||||
<TableCell align="left" sx={{ fontWeight: 'bold' }}>
|
{/* <TableCell align="left" sx={{ fontWeight: 'bold' }}>*/}
|
||||||
{label}
|
{/* {label}*/}
|
||||||
</TableCell>
|
{/* </TableCell>*/}
|
||||||
<TableCell
|
{/* <TableCell*/}
|
||||||
align="right"
|
{/* align="right"*/}
|
||||||
sx={{
|
{/* sx={{*/}
|
||||||
width: '6ch',
|
{/* width: '6ch',*/}
|
||||||
whiteSpace: 'nowrap',
|
{/* whiteSpace: 'nowrap',*/}
|
||||||
paddingRight: '12px'
|
{/* paddingRight: '12px'*/}
|
||||||
}}
|
{/* }}*/}
|
||||||
>
|
{/* >*/}
|
||||||
{value + ' °C'}
|
{/* {value + ' °C'}*/}
|
||||||
</TableCell>
|
{/* </TableCell>*/}
|
||||||
</TableRow>
|
{/* </TableRow>*/}
|
||||||
))}
|
{/* ))}*/}
|
||||||
</TableBody>
|
{/* </TableBody>*/}
|
||||||
</Table>
|
{/* </Table>*/}
|
||||||
</TableContainer>
|
{/* </TableContainer>*/}
|
||||||
</Card>
|
{/*</Card>*/}
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
{/*----------------------------------------------------------------------------------------------------------------------------------*/}
|
{/*----------------------------------------------------------------------------------------------------------------------------------*/}
|
||||||
|
|
|
||||||
|
|
@ -1027,7 +1027,8 @@ function Overview(props: OverviewProps) {
|
||||||
alignItems="stretch"
|
alignItems="stretch"
|
||||||
spacing={3}
|
spacing={3}
|
||||||
>
|
>
|
||||||
<Grid item md={product === 2 ? 12 : 6} xs={12}>
|
{product !== 2 && (
|
||||||
|
<Grid item md={6} xs={12}>
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
overflow: 'visible',
|
overflow: 'visible',
|
||||||
|
|
@ -1088,6 +1089,7 @@ function Overview(props: OverviewProps) {
|
||||||
/>
|
/>
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
)}
|
||||||
{product !== 2 && (
|
{product !== 2 && (
|
||||||
<Grid item md={6} xs={12}>
|
<Grid item md={6} xs={12}>
|
||||||
<Card
|
<Card
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue