File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ function CustomTabPanel(props: TabPanelProps) {
3535
3636export 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 >
You can’t perform that action at this time.
0 commit comments