File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,7 @@ const LeftColExpansionPanel = (props: LeftColExpPanPropsInt) => {
68
68
// state/class toggles will be displayed when a component is focused
69
69
const focusedToggle = isFocused ( ) === 'focused' ? true : false ;
70
70
71
- //helper function to update the code in the code preview when state/class toggles are switched
72
- const generateNewCode = ( ) => {
73
- const text = format ( componentRender ( focusComponent , components ) , {
74
- singleQuote : true ,
75
- trailingComma : 'es5' ,
76
- bracketSpacing : true ,
77
- jsxBracketSameLine : true ,
78
- parser : 'typescript'
79
- } ) ;
80
- updateCode ( {
81
- componentId : focusComponent . id ,
82
- code : text
83
- } ) ;
84
- } ;
71
+
85
72
86
73
//this function determines whether edit mode for component name should be entered or not
87
74
//resets the title if 'escape' key is hit
You can’t perform that action at this time.
0 commit comments