@@ -26,7 +26,6 @@ const Sidebar: React.FC<SidebarProps> = ({
26
26
//the following allows users to click on the left panel to expand and collapse.
27
27
// We decided to freeze so we've commented this and line 41 out
28
28
29
-
30
29
// const handleTabClick = (event: React.MouseEvent, oldValue: number) => {
31
30
// if (activeTab === oldValue) {
32
31
// setActiveTab(null);
@@ -53,77 +52,77 @@ const Sidebar: React.FC<SidebarProps> = ({
53
52
alignItems : 'center' ,
54
53
justifyContent : 'top' ,
55
54
gap : '50px' ,
56
- width : '70px' , // changed from 67
57
- background : '#1e2024' , // changed
58
- marginRight : '2px' , // added
55
+ width : '70px' ,
56
+ background : '#1e2024' ,
57
+ marginRight : '2px' ,
59
58
height : '100vh'
60
59
} }
61
60
>
62
61
< Tab sx = { { position : 'absolute' , visibility : 'hidden' } } value = { null } />
63
62
< Tab
64
63
sx = { {
65
64
color : activeTab === 0 ? '#E4E4E5' : '#9C9D9F' ,
66
- backgroundColor : activeTab === 0 && '#2D313A' , // added
65
+ backgroundColor : activeTab === 0 && '#2D313A' ,
67
66
'&.Mui-selected' : { color : '#E4E4E5' } ,
68
67
'&:hover' : { color : '#e9e9e9' } ,
69
- fontSize : '11px' , // added
70
- textTransform : 'none' // added
68
+ fontSize : '11px' ,
69
+ textTransform : 'none'
71
70
} }
72
71
icon = { < AddBox sx = { { fontSize : '26px' } } /> }
73
72
value = { 0 }
74
- label = "Canvas" // added
73
+ label = "Canvas"
75
74
/>
76
75
< Tab
77
76
sx = { {
78
77
color : activeTab === 1 ? '#E4E4E5' : '#9C9D9F' ,
79
78
backgroundColor : activeTab === 1 && '#2D313A' ,
80
79
'&.Mui-selected' : { color : '#E4E4E5' } ,
81
80
'&:hover' : { color : '#e9e9e9' } ,
82
- fontSize : '11px' , // added
83
- textTransform : 'none' // added
81
+ fontSize : '11px' ,
82
+ textTransform : 'none'
84
83
} }
85
84
icon = { < IoMdCube style = { { fontSize : '25px' } } /> }
86
85
value = { 1 }
87
- label = "Create" // added
86
+ label = "Create"
88
87
/>
89
88
< Tab
90
89
sx = { {
91
90
color : activeTab === 2 ? '#E4E4E5' : '#9C9D9F' ,
92
91
backgroundColor : activeTab === 2 && '#2D313A' ,
93
92
'&.Mui-selected' : { color : '#E4E4E5' } ,
94
93
'&:hover' : { color : '#e9e9e9' } ,
95
- fontSize : '11px' , // added
96
- textTransform : 'none' // added
94
+ fontSize : '11px' ,
95
+ textTransform : 'none'
97
96
} }
98
97
icon = { < Groups2 sx = { { fontSize : '28px' } } /> }
99
98
value = { 2 }
100
- label = "Collab" // added
99
+ label = "Collab"
101
100
/>
102
101
< Tab
103
102
sx = { {
104
103
color : activeTab === 3 ? '#E4E4E5' : '#9C9D9F' ,
105
104
backgroundColor : activeTab === 3 && '#2D313A' ,
106
105
'&.Mui-selected' : { color : '#E4E4E5' } ,
107
106
'&:hover' : { color : '#e9e9e9' } ,
108
- fontSize : '11px' , // added
109
- textTransform : 'none' // added
107
+ fontSize : '11px' ,
108
+ textTransform : 'none'
110
109
} }
111
110
icon = { < AccountBox sx = { { fontSize : '26px' } } /> }
112
111
value = { 3 }
113
- label = "Profile" // added
112
+ label = "Profile"
114
113
/>
115
114
< Tab
116
115
sx = { {
117
116
color : activeTab === 4 ? '#E4E4E5' : '#9C9D9F' ,
118
117
backgroundColor : activeTab === 4 && '#2D313A' ,
119
118
'&.Mui-selected' : { color : '#E4E4E5' } ,
120
119
'&:hover' : { color : '#e9e9e9' } ,
121
- fontSize : '11px' , // added
122
- textTransform : 'none' // added
120
+ fontSize : '11px' ,
121
+ textTransform : 'none'
123
122
} }
124
123
icon = { < Settings sx = { { fontSize : '26px' } } /> }
125
124
value = { 4 }
126
- label = "Settings" // added
125
+ label = "Settings"
127
126
/>
128
127
</ Tabs >
129
128
) ;
0 commit comments