@@ -51,7 +51,6 @@ const StateRoute = (props: StateRouteProps) => {
5151 console . log ( hierarchy )
5252
5353 const isRecoil = snapshot . atomsComponents ? true : false ;
54-
5554 const [ noRenderData , setNoRenderData ] = useState ( false ) ;
5655
5756 // component map zoom state
@@ -72,7 +71,7 @@ const StateRoute = (props: StateRouteProps) => {
7271 </ ParentSize >
7372 ) ;
7473 }
75- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
74+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
7675 } ;
7776
7877 // the hierarchy gets set on the first click in the page
@@ -91,7 +90,7 @@ const StateRoute = (props: StateRouteProps) => {
9190 </ div >
9291 ) ;
9392 }
94- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
93+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
9594 } ;
9695
9796 const renderAtomsRelationship = ( ) => (
@@ -102,10 +101,6 @@ const StateRoute = (props: StateRouteProps) => {
102101 height = { height }
103102 snapshots = { snapshots } /> }
104103 </ ParentSize >
105-
106- // atomsComponents={snapshot.atomsComponents}
107- // atomSelectors={snapshot.atomSelectors}
108- // />
109104 ) ;
110105
111106 // the hierarchy gets set on the first click in the page
@@ -115,7 +110,7 @@ const StateRoute = (props: StateRouteProps) => {
115110 if ( hierarchy ) {
116111 return < Tree snapshot = { snapshot } /> ;
117112 }
118- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
113+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
119114 } ;
120115
121116 const renderPerfView = ( ) => {
@@ -139,55 +134,55 @@ const StateRoute = (props: StateRouteProps) => {
139134 // />
140135 ) ;
141136 }
142- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
137+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
143138 } ;
144139
145140 return (
146141 < Router >
147- < div className = ' navbar' >
142+ < div className = " navbar" >
148143 < NavLink
149- className = ' router-link'
150- activeClassName = ' is-active'
144+ className = " router-link"
145+ activeClassName = " is-active"
151146 exact
152- to = '/'
147+ to = "/"
153148 >
154149 Tree
155150 </ NavLink >
156151 < NavLink
157- className = ' router-link'
158- activeClassName = ' is-active'
159- to = ' /history'
152+ className = " router-link"
153+ activeClassName = " is-active"
154+ to = " /history"
160155 >
161156 History
162157 </ NavLink >
163- < NavLink className = ' router-link' activeClassName = ' is-active' to = ' /map' >
158+ < NavLink className = " router-link" activeClassName = " is-active" to = " /map" >
164159 Map
165160 </ NavLink >
166161
167162 { isRecoil && (
168163 < NavLink
169- className = ' router-link'
170- activeClassName = ' is-active'
171- to = ' /relationship'
164+ className = " router-link"
165+ activeClassName = " is-active"
166+ to = " /relationship"
172167 >
173168 AtomsRecoil
174169 </ NavLink >
175170 ) }
176171
177172 < NavLink
178- className = ' router-link'
179- activeClassName = ' is-active'
180- to = ' /performance'
173+ className = " router-link"
174+ activeClassName = " is-active"
175+ to = " /performance"
181176 >
182177 Performance
183178 </ NavLink >
184179 </ div >
185180 < Switch >
186- < Route path = ' /map' render = { renderComponentMap } />
187- < Route path = ' /history' render = { renderHistory } />
188- < Route path = ' /relationship' render = { renderAtomsRelationship } />
189- < Route path = ' /performance' render = { renderPerfView } />
190- < Route path = '/' render = { renderTree } />
181+ < Route path = " /map" render = { renderComponentMap } />
182+ < Route path = " /history" render = { renderHistory } />
183+ < Route path = " /relationship" render = { renderAtomsRelationship } />
184+ < Route path = " /performance" render = { renderPerfView } />
185+ < Route path = "/" render = { renderTree } />
191186 </ Switch >
192187 </ Router >
193188 ) ;
0 commit comments