Skip to content

Commit 9f93c22

Browse files
committed
Co-authored-by: Mike Dunnmon <[email protected]>
1 parent a31e96d commit 9f93c22

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

app/src/components/ContextAPIManager/ContextManager.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
import React from 'react';
1+
2+
3+
import React, { useContext } from 'react';
24
import { makeStyles } from '@mui/styles';
35
import Box from '@mui/material/Box';
46
import Tab from '@mui/material/Tab';
57
import TabContext from '@mui/lab/TabContext';
68
import TabList from '@mui/lab/TabList';
79
import TabPanel from '@mui/lab/TabPanel';
10+
811
import CreateContainer from './CreateTab/CreateContainer';
912
import AssignContainer from './AssignTab/AssignContainer';
1013
import DisplayContainer from './DisplayTab/DisplayContainer';
11-
import { useSelector } from 'react-redux';
14+
import { useSelector } from 'react-redux'
15+
1216

1317
const useStyles = makeStyles({
1418
contextContainer: {
@@ -24,12 +28,12 @@ const ContextManager = (props): JSX.Element => {
2428
}));
2529
const classes = useStyles();
2630
const [value, setValue] = React.useState<string>('1');
27-
31+
2832
const handleChange = (event: React.SyntheticEvent, newValue: string) => {
2933
setValue(newValue);
3034
};
3135

32-
const color = isDarkMode ? 'lightgray' : 'black';
36+
const background_Color = isDarkMode ? '#21262b' : 'white'
3337

3438
return (
3539
<React.Fragment>
@@ -38,9 +42,9 @@ const ContextManager = (props): JSX.Element => {
3842
<TabContext value={value}>
3943
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
4044
<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" />
4448
</TabList>
4549
</Box>
4650
<TabPanel value="1">
@@ -59,4 +63,4 @@ const ContextManager = (props): JSX.Element => {
5963
);
6064
};
6165

62-
export default ContextManager;
66+
export default ContextManager;

0 commit comments

Comments
 (0)