@@ -53,7 +53,7 @@ class App extends Component {
5353 let diff = recurseDiff ( oldstate , this . state . appReactDOM ) ;
5454 appState . setState ( { stateDiff : diff } ) ;
5555 }
56-
56+
5757 //if there is an active setTimeout, clear it
5858 clearTimeout ( timeout ) ;
5959 timeout = setTimeout ( ( ) => {
@@ -97,14 +97,14 @@ class App extends Component {
9797 headers : { 'Content-Type' : 'application/json' } ,
9898 body : JSON . stringify ( { query : introspectionQuery } )
9999 } )
100- . then ( res => res . json ( ) )
101- . then ( json =>
102- this . setState ( {
103- schema : JSON . stringify ( json . data )
104- } )
100+ . then ( res => res . json ( ) )
101+ . then ( json =>
102+ this . setState ( {
103+ schema : JSON . stringify ( json . data )
104+ } )
105105 ) ;
106- }
107106 }
107+ }
108108
109109 //* invoke schema fetch only after a log object from a previous response is available
110110 componentDidUpdate ( prevProps , prevState ) {
@@ -128,7 +128,7 @@ class App extends Component {
128128 this . setState ( { window : 'React' } ) ;
129129 document . querySelector ( '#reactbtn' ) . classList . add ( 'active' ) ;
130130 document . querySelector ( '#graphqlbtn' ) . classList . remove ( 'active' ) ;
131- } else if ( this . state . window === 'React' && target . dataset . btn === 'Graphql' ) {
131+ } else if ( this . state . window === 'React' && target . dataset . btn === 'Graphql' ) {
132132 this . setState ( { window : 'Graphql' } ) ;
133133 document . querySelector ( '#reactbtn' ) . classList . remove ( 'active' ) ;
134134 document . querySelector ( '#graphqlbtn' ) . classList . add ( 'active' ) ;
@@ -137,7 +137,7 @@ class App extends Component {
137137
138138 // * Handles the filter for the component tree
139139 handleFilter ( e , arr ) {
140- if ( e . target . classList . contains ( 'toggleOn' ) ) {
140+ if ( e . target . classList . contains ( 'toggleOn' ) ) {
141141 e . target . classList . remove ( 'toggleOn' )
142142 } else {
143143 e . target . classList . add ( 'toggleOn' ) ;
@@ -196,21 +196,17 @@ class App extends Component {
196196 < div >
197197 { this . state . appState . length === 0 ?
198198 < div id = 'devToolsLoader' >
199- < img src = './../public/assests /logo-card.png' alt = 'devtool logo' />
199+ < img src = './../public/assets /logo-card.png' alt = 'devtool logo card' />
200200 < h1 > Please trigger a setState() to activate Lucid devtool.< br /> </ h1 >
201201 < p > Lucid works best on apps using React v16+ in development mode</ p >
202202 </ div >
203203 :
204204 < div id = 'app-container' >
205205 < div id = 'window' >
206206 < div id = 'window-nav' >
207- < img id = 'logo' src = './logo.png' alt = 'devtool logo' />
208- < span class = 'window-btn-wrapper' >
209- < button className = 'window-btn active' id = 'graphqlbtn' data-btn = 'Graphql' onClick = { ( e ) => { this . handleWindowChange ( e . target ) ; } } > GraphQL</ button >
210- </ span >
211- < span class = 'window-btn-wrapper' >
212- < button className = 'window-btn' id = 'reactbtn' data-btn = 'React' onClick = { ( e ) => { this . handleWindowChange ( e . target ) ; } } > Component Tree</ button >
213- </ span >
207+ < img id = 'logo' src = './logo.png' alt = 'devtool logo' />
208+ < button className = 'window-btn active' id = 'graphqlbtn' data-btn = 'Graphql' onClick = { ( e ) => { this . handleWindowChange ( e . target ) ; } } > GraphQL</ button >
209+ < button className = 'window-btn' id = 'reactbtn' data-btn = 'React' onClick = { ( e ) => { this . handleWindowChange ( e . target ) ; } } > Component Tree</ button >
214210 </ div >
215211
216212 { /* This checks what window the user has click on.
0 commit comments