File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/containers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ export default class MenuPanel extends Component {
15
15
getIcon ( ) {
16
16
if ( this . props . question ) {
17
17
return {
18
- iconType : < QuestionIcon className = "menupanel__icon" /> ,
18
+ icon : < QuestionIcon className = "menupanel__icon" /> ,
19
19
spanClass : `menupanel__icon-span menupanel__icon-span--question` ,
20
20
} ;
21
21
}
22
22
return {
23
- iconType : < CogIcon className = "menupanel__icon" /> ,
23
+ icon : < CogIcon className = "menupanel__icon" /> ,
24
24
spanClass : 'menupanel__icon-span menupanel__icon-span--cog' ,
25
25
} ;
26
26
}
@@ -35,13 +35,13 @@ export default class MenuPanel extends Component {
35
35
'menupanel--ownline' : this . props . ownline ,
36
36
} ) ;
37
37
38
- const { iconType , spanClass} = this . getIcon ( ) ;
38
+ const { icon , spanClass} = this . getIcon ( ) ;
39
39
40
40
return (
41
41
< div className = { containerClass } >
42
42
< span className = { spanClass } >
43
43
< span > { this . props . label } </ span >
44
- < span onClick = { this . togglePanel } > { iconType } </ span >
44
+ < span onClick = { this . togglePanel } > { icon } </ span >
45
45
</ span >
46
46
{ isOpen ? (
47
47
< ModalBox onClose = { this . togglePanel } > { this . props . children } </ ModalBox >
You can’t perform that action at this time.
0 commit comments