You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// button // commented out to disable materialUI hover shading effect. TBD if any adverse effects occur
73
-
style={{color: 'red'}}
74
-
onClick={()=>{
75
-
changeFocusComponent({ title });
76
-
}}
77
-
>
78
-
<ListItemText
79
-
disableTypography
80
-
className={classes.light}
81
-
primary={
82
-
<div>
83
-
<Typography
84
-
//type='body2'
85
-
style={{
86
-
color: '#fff',
87
-
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.2)',
88
-
fontSize: '1.40rem'
89
-
}}
90
-
>
91
-
{title}
92
-
</Typography>
93
-
94
-
{/* ALL OF THE STATE/CLASS TOGGLES AND LABELS ARE ONLY RENDERED IF THEIR COMPONENT IS THE FOCUSED COMPONENT
95
-
96
-
TO DO : IMPROVE DRYNESS OF CODE BY RENDERING ALL FOUR MATERIAL ELEMENTS (LABELS/SWITCH) IN ONE CONDITIONAL
97
-
*/}
98
-
99
-
{/* LABEL AND TOGGLE(SWITCH) FOR STATEFULNESS */}
100
-
{focusedToggle ? (
101
-
<InputLabel
102
-
htmlFor="stateful"
79
+
{/* {This is the component responsible for the collapsing transition animation for each component card} */}
80
+
<Collapse
81
+
in={focusedToggle}
82
+
collapsedHeight={70}//The type for the Collapse component is asking for a string, but if you put in a string and not a number, the component itself breaks.
83
+
>
84
+
{/* NOT SURE WHY COLOR: RED IS USED, TRIED REMOVING IT AND NO VISIBLE CHANGE OCCURED. */}
85
+
<Grid
86
+
item
87
+
xs={12}
88
+
style={{
89
+
color: 'red',
90
+
backgroundColor: color,
91
+
borderRadius: '10px',
92
+
}}
93
+
>
94
+
<Liststyle={{color: 'red'}}>
95
+
<ListItem
96
+
// button // commented out to disable materialUI hover shading effect. TBD if any adverse effects occur
97
+
style={{color: 'red'}}
98
+
onClick={()=>{
99
+
changeFocusComponent({ title });
100
+
}}
101
+
>
102
+
<ListItemText
103
+
disableTypography
104
+
className={classes.light}
105
+
primary={
106
+
<div>
107
+
<Typography
108
+
//type='body2'
103
109
style={{
104
110
color: '#fff',
105
-
marginBottom: '10px',
106
-
marginTop: '0px',
107
-
marginLeft: '11px',
108
-
padding: '0px',
109
-
fontSize: '18px',
110
-
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.7)'
111
+
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.7)',
112
+
fontSize: '1.40rem',
111
113
}}
112
114
>
113
-
State?
114
-
</InputLabel>
115
-
) : (
116
-
''
117
-
)}
115
+
{title}
116
+
</Typography>
118
117
119
-
{focusedToggle ? (
120
-
<Switch
121
-
checked={stateful}
122
-
onChange={e=>{
123
-
toggleComponentState(id);
124
-
changeFocusComponent({ title });
125
-
}}
126
-
value="stateful"
127
-
color="primary"
128
-
// id={props.id.toString()}
129
-
/>
130
-
) : (
131
-
''
132
-
)}
133
-
<div>
134
-
{/* LABEL/TOGGLE(SWITCH) FOR CLASS BASED */}
118
+
{/* ALL OF THE STATE/CLASS TOGGLES AND LABELS ARE ONLY RENDERED IF THEIR COMPONENT IS THE FOCUSED COMPONENT
119
+
120
+
TO DO : IMPROVE DRYNESS OF CODE BY RENDERING ALL FOUR MATERIAL ELEMENTS (LABELS/SWITCH) IN ONE CONDITIONAL
0 commit comments