|
1 | 1 | import React, { useState } from 'react';
|
2 |
| -import makeStyles from '@mui/styles/makeStyles'; |
3 |
| -import Tabs from '@mui/material/Tabs'; |
4 |
| -import Tab from '@mui/material/Tab'; |
5 |
| -import StylesEditor from './StylesEditor'; |
6 |
| -import CustomizationPanel from '../../containers/CustomizationPanel'; |
| 2 | +import { useDispatch, useSelector } from 'react-redux'; |
| 3 | +import { changeProjectType } from '../../redux/reducers/slice/appStateSlice'; |
| 4 | +import { RootState } from '../../redux/store'; |
| 5 | +import { MeetingProvider } from '@videosdk.live/react-sdk'; |
| 6 | +const videoSDKToken = `${import.meta.env.VITE_VIDEOSDK_TOKEN}`; |
| 7 | +import Chatroom from './ChatRoom'; |
7 | 8 | import CreationPanel from './CreationPanel';
|
| 9 | +import CustomizationPanel from '../../containers/CustomizationPanel'; |
| 10 | +import StylesEditor from './StylesEditor'; |
| 11 | +import Tree from '../../tree/TreeChart'; |
8 | 12 | import ContextManager from '../ContextAPIManager/ContextManager';
|
9 | 13 | import StateManager from '../StateManagement/StateManagement';
|
10 |
| -import Chatroom from './ChatRoom'; |
| 14 | +import MUIProps from './MUIProps'; |
| 15 | +import makeStyles from '@mui/styles/makeStyles'; |
| 16 | +import Tabs from '@mui/material/Tabs'; |
| 17 | +import Tab from '@mui/material/Tab'; |
11 | 18 | import Box from '@mui/material/Box';
|
12 |
| -import Tree from '../../tree/TreeChart'; |
13 | 19 | import FormControl from '@mui/material/FormControl';
|
14 | 20 | import MenuItem from '@mui/material/MenuItem';
|
15 | 21 | import Select from '@mui/material/Select';
|
16 | 22 | import arrow from '../main/Arrow';
|
17 |
| -import { useDispatch, useSelector } from 'react-redux'; |
18 |
| -import { changeProjectType } from '../../redux/reducers/slice/appStateSlice'; |
19 |
| -import { RootState } from '../../redux/store'; |
20 |
| -import { MeetingProvider } from '@videosdk.live/react-sdk'; |
21 |
| -const videoSDKToken = `${import.meta.env.VITE_VIDEOSDK_TOKEN}`; |
| 23 | + |
22 | 24 |
|
23 | 25 | const BottomTabs = (props): JSX.Element => {
|
24 | 26 | const { setBottomShow, isThemeLight } = props;
|
@@ -73,54 +75,52 @@ const BottomTabs = (props): JSX.Element => {
|
73 | 75 | indicator: classes.tabsIndicator
|
74 | 76 | }}
|
75 | 77 | variant="scrollable"
|
76 |
| - scrollButtons="auto" |
| 78 | + scrollButtons="auto" |
77 | 79 | >
|
78 |
| - <Tab |
79 |
| - disableRipple |
| 80 | + <Tab |
80 | 81 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
81 | 82 | label="Live Chat"
|
82 | 83 | onClick={showBottomPanel}
|
83 | 84 | sx={{ borderTop: '2px solid #191919' }}
|
84 | 85 | />
|
85 | 86 | <Tab
|
86 |
| - disableRipple |
87 | 87 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
88 | 88 | label="Creation Panel"
|
89 | 89 | onClick={showBottomPanel}
|
90 | 90 | sx={{ borderTop: '2px solid #191919' }}
|
91 | 91 | />
|
92 | 92 | <Tab
|
93 |
| - disableRipple |
94 | 93 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
95 | 94 | label="Customization"
|
96 | 95 | onClick={showBottomPanel}
|
97 | 96 | sx={{ borderTop: '2px solid #191919' }}
|
98 | 97 | />
|
99 | 98 | <Tab
|
100 |
| - disableRipple |
101 | 99 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
102 | 100 | label="CSS Editor"
|
103 | 101 | onClick={showBottomPanel}
|
104 | 102 | sx={{ borderTop: '2px solid #191919' }}
|
105 | 103 | />
|
106 | 104 | <Tab
|
107 |
| - disableRipple |
108 | 105 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
109 | 106 | label="Component Tree"
|
110 | 107 | onClick={showBottomPanel}
|
111 | 108 | />
|
112 | 109 | <Tab
|
113 |
| - disableRipple |
114 | 110 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
115 | 111 | label="Context Manager"
|
116 | 112 | onClick={showBottomPanel}
|
117 | 113 | />
|
118 | 114 | <Tab
|
119 |
| - disableRipple |
120 | 115 | classes={{ root: classes.tabRoot, selected: classes.tabSelected }}
|
121 | 116 | label="State Manager"
|
122 | 117 | onClick={showBottomPanel}
|
123 | 118 | />
|
| 119 | + <Tab |
| 120 | + classes={{ root: classes.tabRoot, selected: classes.tabSelected }} |
| 121 | + label="MUI Props" |
| 122 | + onClick={showBottomPanel} |
| 123 | + /> |
124 | 124 | </Tabs>
|
125 | 125 |
|
126 | 126 | <div className={classes.projectTypeWrapper}>
|
@@ -161,13 +161,8 @@ const BottomTabs = (props): JSX.Element => {
|
161 | 161 | {tab === 3 && <StylesEditor theme={theme} setTheme={setTheme} />}
|
162 | 162 | {tab === 4 && <Tree data={components} />}
|
163 | 163 | {tab === 5 && <ContextManager theme={theme} setTheme={setTheme} />}
|
164 |
| - {tab === 6 && ( |
165 |
| - <StateManager |
166 |
| - theme={theme} |
167 |
| - setTheme={setTheme} |
168 |
| - isThemeLight={isThemeLight} |
169 |
| - /> |
170 |
| - )} |
| 164 | + {tab === 6 && (<StateManager theme={theme} setTheme={setTheme} isThemeLight={isThemeLight} />)} |
| 165 | + {tab === 7 && <MUIProps theme={theme} setTheme={setTheme} />} |
171 | 166 | </div>
|
172 | 167 | </div>
|
173 | 168 | </MeetingProvider>
|
|
0 commit comments