File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ const LeftColExpansionPanel = (props) => {
21
21
} = props ;
22
22
const { title, id, color } = component ;
23
23
24
+ function isFocused ( ) {
25
+ return focusComponent . title === title ? 'focused' : '' ;
26
+ }
27
+
24
28
return (
25
29
< div className = { classes . root } >
26
30
< Grid item xs = { 12 } md = { 6 } >
@@ -34,7 +38,7 @@ const LeftColExpansionPanel = (props) => {
34
38
{ title }
35
39
</ Typography >
36
40
}
37
- secondary = { 'focused' }
41
+ secondary = { isFocused ( ) }
38
42
style = { { color } }
39
43
/>
40
44
< ListItemSecondaryAction >
@@ -43,7 +47,7 @@ const LeftColExpansionPanel = (props) => {
43
47
style = { { color, float : 'right' } }
44
48
onClick = { ( ) => {
45
49
console . log ( title ) ;
46
- addChild ( { title } ) ;
50
+ addChild ( { title } ) ;
47
51
} }
48
52
/>
49
53
</ IconButton >
You can’t perform that action at this time.
0 commit comments