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
76
-
style={{color: 'red'}}
77
-
onClick={()=>{
78
-
changeFocusComponent({ title });
79
-
}}
80
-
>
81
-
<ListItemText
82
-
disableTypography
83
-
className={classes.light}
84
-
primary={
85
-
<div>
86
-
<Typography
87
-
//type='body2'
88
-
style={{
89
-
color: '#fff',
90
-
textShadow: '1px 1px 2px rgba(0, 0, 0, 0.7)',
91
-
fontSize: '1.40rem',
92
-
}}
93
-
>
94
-
{title}
95
-
</Typography>
96
-
97
-
{/* ALL OF THE STATE/CLASS TOGGLES AND LABELS ARE ONLY RENDERED IF THEIR COMPONENT IS THE FOCUSED COMPONENT
98
-
99
-
TO DO : IMPROVE DRYNESS OF CODE BY RENDERING ALL FOUR MATERIAL ELEMENTS (LABELS/SWITCH) IN ONE CONDITIONAL
100
-
*/}
101
-
102
-
{/* LABEL AND TOGGLE(SWITCH) FOR STATEFULNESS */}
103
-
{focusedToggle ? (
104
-
<InputLabel
105
-
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'
106
109
style={{
107
110
color: '#fff',
108
-
marginBottom: '10px',
109
-
marginTop: '0px',
110
-
marginLeft: '11px',
111
-
padding: '0px',
112
-
fontSize: '18px',
113
-
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',
114
113
}}
115
114
>
116
-
State?
117
-
</InputLabel>
118
-
) : (
119
-
''
120
-
)}
115
+
{title}
116
+
</Typography>
121
117
122
-
{focusedToggle ? (
123
-
<Switch
124
-
checked={stateful}
125
-
onChange={e=>{
126
-
toggleComponentState(id);
127
-
changeFocusComponent({ title });
128
-
}}
129
-
value="stateful"
130
-
color="primary"
131
-
// id={props.id.toString()}
132
-
/>
133
-
) : (
134
-
''
135
-
)}
136
-
<div>
137
-
{/* 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