Skip to content

Commit 7be484e

Browse files
committed
Separate card
1 parent 4a37f06 commit 7be484e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/screens/BeamlineStats.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ function PmacStagesState(props: StateBoxProps) {
4949
transformValue={parseNumericPv}
5050
decimals={4}
5151
/>
52+
</CardContent>
53+
</Card>
54+
);
55+
}
56+
57+
function ScanStatus(props: StateBoxProps) {
58+
return (
59+
<Card variant="outlined" sx={{ minWidth: 300, bgcolor: props.bgColor }}>
60+
<CardContent>
61+
<Typography
62+
variant="h1"
63+
sx={{
64+
color: props.titleColor,
65+
fontSize: 18,
66+
fontWeight: "fontWeightBold",
67+
}}
68+
>
69+
{props.title}
70+
</Typography>
5271
<PvComponent
5372
label="Scan Status"
5473
pv="ca://BL24I-MO-STEP-14:signal:P2401"
@@ -164,6 +183,11 @@ export function BeamlineStatsTabPanel() {
164183
title="Serial Fixed Target Stages"
165184
titleColor={theme.palette.info.main}
166185
/>
186+
<ScanStatus
187+
bgColor={bgColor}
188+
title="Scan Monitor"
189+
titleColor={theme.palette.info.main}
190+
/>
167191
</Grid2>
168192
</Stack>
169193
</Box>

0 commit comments

Comments
 (0)