@@ -45,6 +45,7 @@ export interface StateRouteProps {
4545const StateRoute = ( props : StateRouteProps ) => {
4646 const { snapshot, hierarchy, snapshots, viewIndex } = props ;
4747
48+
4849 const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
4950 const { hierarchy, sliderIndex, viewIndex } = tabs [ currentTab ] ;
5051 const isRecoil = snapshot . atomsComponents ? true : false ;
@@ -71,13 +72,12 @@ const StateRoute = (props: StateRouteProps) => {
7172 </ ParentSize >
7273 ) ;
7374 }
74- return < div className = " noState" > { NO_STATE_MSG } </ div > ;
75+ return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
7576 } ;
7677
7778 // the hierarchy gets set on the first click in the page
7879 // when the page is refreshed we may not have a hierarchy, so we need to check if hierarchy was initialized
79- // if true involk render chart with hierarchy
80- //* we wrap History in a ParentSize div, in order to make use of Visx's Zoom functionality
80+ // if true invoke render chart with hierarchy
8181 const renderHistory = ( ) => {
8282 if ( hierarchy ) {
8383 return ( < History
@@ -87,7 +87,7 @@ const StateRoute = (props: StateRouteProps) => {
8787 viewIndex = { viewIndex }
8888 /> )
8989 }
90- return < div className = " noState" > { NO_STATE_MSG } </ div > ;
90+ return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
9191 } ;
9292
9393 const renderAtomsRelationship = ( ) => (
@@ -103,12 +103,12 @@ const StateRoute = (props: StateRouteProps) => {
103103
104104 // the hierarchy gets set on the first click in the page
105105 // when the page is refreshed we may not have a hierarchy, so we need to check if hierarchy was initialized
106- // if true involk render Tree with snapshot
106+ // if true invoke render Tree with snapshot
107107 const renderTree = ( ) => {
108108 if ( hierarchy ) {
109109 return < Tree snapshot = { snapshot } /> ;
110110 }
111- return < div className = " noState" > { NO_STATE_MSG } </ div > ;
111+ return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
112112 } ;
113113
114114 const renderPerfView = ( ) => {
@@ -134,55 +134,55 @@ const StateRoute = (props: StateRouteProps) => {
134134 // />
135135 ) ;
136136 }
137- return < div className = " noState" > { NO_STATE_MSG } </ div > ;
137+ return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
138138 } ;
139139
140140 return (
141141 < Router >
142- < div className = " navbar" >
142+ < div className = ' navbar' >
143143 < NavLink
144- className = " router-link"
145- activeClassName = " is-active"
144+ className = ' router-link'
145+ activeClassName = ' is-active'
146146 exact
147- to = "/"
147+ to = '/'
148148 >
149149 Tree
150150 </ NavLink >
151151 < NavLink
152- className = " router-link"
153- activeClassName = " is-active"
154- to = " /history"
152+ className = ' router-link'
153+ activeClassName = ' is-active'
154+ to = ' /history'
155155 >
156156 History
157157 </ NavLink >
158- < NavLink className = " router-link" activeClassName = " is-active" to = " /map" >
158+ < NavLink className = ' router-link' activeClassName = ' is-active' to = ' /map' >
159159 Map
160160 </ NavLink >
161161
162162 { isRecoil && (
163163 < NavLink
164- className = " router-link"
165- activeClassName = " is-active"
166- to = " /relationship"
164+ className = ' router-link'
165+ activeClassName = ' is-active'
166+ to = ' /relationship'
167167 >
168168 AtomsRecoil
169169 </ NavLink >
170170 ) }
171171
172172 < NavLink
173- className = " router-link"
174- activeClassName = " is-active"
175- to = " /performance"
173+ className = ' router-link'
174+ activeClassName = ' is-active'
175+ to = ' /performance'
176176 >
177177 Performance
178178 </ NavLink >
179179 </ div >
180180 < Switch >
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 } />
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 } />
186186 </ Switch >
187187 </ Router >
188188 ) ;
0 commit comments