Skip to content

Commit 1ae9295

Browse files
committed
Rename const
1 parent 19fe74f commit 1ae9295

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/routes/BeamlineI24.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ function CustomTabPanel(props: TabPanelProps) {
3535

3636
export function BeamlineI24() {
3737
const theme = useTheme();
38-
const [value, setValue] = React.useState(0);
38+
const [tab, setTab] = React.useState(0);
3939

40-
const handleChange = (_event: React.SyntheticEvent, newValue: number) => {
41-
setValue(newValue);
40+
const handleChange = (_event: React.SyntheticEvent, newTab: number) => {
41+
setTab(newTab);
4242
};
4343
return (
4444
<Box>
@@ -51,7 +51,7 @@ export function BeamlineI24() {
5151
}}
5252
>
5353
<Tabs
54-
value={value}
54+
value={tab}
5555
onChange={handleChange}
5656
aria-label="basic tabs example"
5757
textColor="secondary"
@@ -62,13 +62,13 @@ export function BeamlineI24() {
6262
<Tab label="OAV view" {...a11yProps(2)} />
6363
</Tabs>
6464
</Box>
65-
<CustomTabPanel value={value} index={0}>
65+
<CustomTabPanel value={tab} index={0}>
6666
<BeamlineStatsTabPanel />
6767
</CustomTabPanel>
68-
<CustomTabPanel value={value} index={1}>
68+
<CustomTabPanel value={tab} index={1}>
6969
<DetectorMotionTabPanel />
7070
</CustomTabPanel>
71-
<CustomTabPanel value={value} index={2}>
71+
<CustomTabPanel value={tab} index={2}>
7272
<OavMover />
7373
</CustomTabPanel>
7474
</Box>

0 commit comments

Comments
 (0)