@@ -41,6 +41,8 @@ const arrToComponent = arr => arr.map((proj, index) => <Project
41
41
id = { proj . id }
42
42
comments = { proj . comments }
43
43
/> ) ;
44
+
45
+ // Caret Start Pulled from materialUI to create a tab panel
44
46
const a11yProps = ( index : any ) => ( {
45
47
id : `vertical-tab-${ index } ` ,
46
48
'aria-controls' : `vertical-tabpanel-${ index } ` ,
@@ -93,6 +95,7 @@ const useStyles = makeStyles((theme) => ({
93
95
borderRight : `1px solid ${ theme . palette . divider } ` ,
94
96
} ,
95
97
} ) ) ;
98
+ // Caret End of prefab code to generate a tab panel
96
99
97
100
const ProjectContainer = ( ) : JSX . Element => {
98
101
const classes = useStyles ( ) ;
@@ -102,6 +105,7 @@ const ProjectContainer = (): JSX.Element => {
102
105
setValue ( newValue ) ;
103
106
} ;
104
107
108
+ // Start Caret of old code from project container
105
109
const myVar = { } ;
106
110
// Need this for the individual user dasboard, for now, dashboard shows all projects from all users
107
111
const userSSID = window . localStorage . getItem ( 'ssid' ) || 'unavailable' ;
@@ -144,7 +148,7 @@ const ProjectContainer = (): JSX.Element => {
144
148
const projects = data . getAllProjects ;
145
149
// create array to hold the data recieved in the public dashboard the will be conditionally rendered
146
150
let sortedProjects = projects . filter ( proj => {
147
- return proj . published
151
+ return proj . published ;
148
152
} ) ;
149
153
const userProjects = projects . filter ( ( proj ) => {
150
154
return proj . username === username ;
@@ -161,6 +165,8 @@ const ProjectContainer = (): JSX.Element => {
161
165
const userDisplay = arrToComponent ( userProjects ) ;
162
166
// create an array of components Project that will be conditionally rendered
163
167
const sortedDisplay = arrToComponent ( sortedProjects ) ;
168
+ // Caret End of old code from Project Container
169
+
164
170
return (
165
171
< div className = { classes . root } >
166
172
< MuiThemeProvider theme = { isThemeLight ? lightTheme : darkTheme } >
0 commit comments