Skip to content

Commit e1e2471

Browse files
MadinventorZerojonocrbuddhajjigaexkevinparkwilliamdyoon
committed
Added some comments to dash updates
Co-authored-by: jonocr <[email protected]> Co-authored-by: buddhajjigae <[email protected]> Co-authored-by: xkevinpark <[email protected]> Co-authored-by: williamdyoon <[email protected]>
1 parent 2137b17 commit e1e2471

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/Dashboard/ProjectContainer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ const arrToComponent = arr => arr.map((proj, index) => <Project
4141
id = {proj.id}
4242
comments = {proj.comments}
4343
/>);
44+
45+
// Caret Start Pulled from materialUI to create a tab panel
4446
const a11yProps = (index: any) => ({
4547
id: `vertical-tab-${index}`,
4648
'aria-controls': `vertical-tabpanel-${index}`,
@@ -93,6 +95,7 @@ const useStyles = makeStyles((theme) => ({
9395
borderRight: `1px solid ${theme.palette.divider}`,
9496
},
9597
}));
98+
// Caret End of prefab code to generate a tab panel
9699

97100
const ProjectContainer = (): JSX.Element => {
98101
const classes = useStyles();
@@ -102,6 +105,7 @@ const ProjectContainer = (): JSX.Element => {
102105
setValue(newValue);
103106
};
104107

108+
// Start Caret of old code from project container
105109
const myVar = {};
106110
// Need this for the individual user dasboard, for now, dashboard shows all projects from all users
107111
const userSSID = window.localStorage.getItem('ssid') || 'unavailable';
@@ -144,7 +148,7 @@ const ProjectContainer = (): JSX.Element => {
144148
const projects = data.getAllProjects;
145149
// create array to hold the data recieved in the public dashboard the will be conditionally rendered
146150
let sortedProjects = projects.filter(proj => {
147-
return proj.published
151+
return proj.published;
148152
});
149153
const userProjects = projects.filter((proj) => {
150154
return proj.username === username;
@@ -161,6 +165,8 @@ const ProjectContainer = (): JSX.Element => {
161165
const userDisplay = arrToComponent(userProjects);
162166
// create an array of components Project that will be conditionally rendered
163167
const sortedDisplay = arrToComponent(sortedProjects);
168+
// Caret End of old code from Project Container
169+
164170
return (
165171
<div className={classes.root}>
166172
<MuiThemeProvider theme={isThemeLight ? lightTheme : darkTheme}>

0 commit comments

Comments
 (0)