1
- import React from 'react' ;
1
+
2
+
3
+ import React , { useContext } from 'react' ;
2
4
import { makeStyles } from '@mui/styles' ;
3
5
import Box from '@mui/material/Box' ;
4
6
import Tab from '@mui/material/Tab' ;
5
7
import TabContext from '@mui/lab/TabContext' ;
6
8
import TabList from '@mui/lab/TabList' ;
7
9
import TabPanel from '@mui/lab/TabPanel' ;
10
+
8
11
import CreateContainer from './CreateTab/CreateContainer' ;
9
12
import AssignContainer from './AssignTab/AssignContainer' ;
10
13
import DisplayContainer from './DisplayTab/DisplayContainer' ;
11
- import { useSelector } from 'react-redux' ;
14
+ import { useSelector } from 'react-redux'
15
+
12
16
13
17
const useStyles = makeStyles ( {
14
18
contextContainer : {
@@ -24,12 +28,12 @@ const ContextManager = (props): JSX.Element => {
24
28
} ) ) ;
25
29
const classes = useStyles ( ) ;
26
30
const [ value , setValue ] = React . useState < string > ( '1' ) ;
27
-
31
+
28
32
const handleChange = ( event : React . SyntheticEvent , newValue : string ) => {
29
33
setValue ( newValue ) ;
30
34
} ;
31
35
32
- const color = isDarkMode ? 'lightgray ' : 'black' ;
36
+ const background_Color = isDarkMode ? '#21262b ' : 'white'
33
37
34
38
return (
35
39
< React . Fragment >
@@ -38,9 +42,9 @@ const ContextManager = (props): JSX.Element => {
38
42
< TabContext value = { value } >
39
43
< Box sx = { { borderBottom : 1 , borderColor : 'divider' } } >
40
44
< TabList onChange = { handleChange } centered = { true } >
41
- < Tab label = "Create/Edit" value = "1" style = { { color } } />
42
- < Tab label = "Assign" value = "2" style = { { color } } />
43
- < Tab label = "Display" value = "3" style = { { color } } />
45
+ < Tab label = "Create/Edit" value = "1" />
46
+ < Tab label = "Assign" value = "2" />
47
+ < Tab label = "Display" value = "3" />
44
48
</ TabList >
45
49
</ Box >
46
50
< TabPanel value = "1" >
@@ -59,4 +63,4 @@ const ContextManager = (props): JSX.Element => {
59
63
) ;
60
64
} ;
61
65
62
- export default ContextManager ;
66
+ export default ContextManager ;
0 commit comments