@@ -51,7 +51,6 @@ const StateRoute = (props: StateRouteProps) => {
51
51
console . log ( hierarchy )
52
52
53
53
const isRecoil = snapshot . atomsComponents ? true : false ;
54
-
55
54
const [ noRenderData , setNoRenderData ] = useState ( false ) ;
56
55
57
56
// component map zoom state
@@ -72,7 +71,7 @@ const StateRoute = (props: StateRouteProps) => {
72
71
</ ParentSize >
73
72
) ;
74
73
}
75
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
74
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
76
75
} ;
77
76
78
77
// the hierarchy gets set on the first click in the page
@@ -91,7 +90,7 @@ const StateRoute = (props: StateRouteProps) => {
91
90
</ div >
92
91
) ;
93
92
}
94
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
93
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
95
94
} ;
96
95
97
96
const renderAtomsRelationship = ( ) => (
@@ -102,10 +101,6 @@ const StateRoute = (props: StateRouteProps) => {
102
101
height = { height }
103
102
snapshots = { snapshots } /> }
104
103
</ ParentSize >
105
-
106
- // atomsComponents={snapshot.atomsComponents}
107
- // atomSelectors={snapshot.atomSelectors}
108
- // />
109
104
) ;
110
105
111
106
// the hierarchy gets set on the first click in the page
@@ -115,7 +110,7 @@ const StateRoute = (props: StateRouteProps) => {
115
110
if ( hierarchy ) {
116
111
return < Tree snapshot = { snapshot } /> ;
117
112
}
118
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
113
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
119
114
} ;
120
115
121
116
const renderPerfView = ( ) => {
@@ -139,55 +134,55 @@ const StateRoute = (props: StateRouteProps) => {
139
134
// />
140
135
) ;
141
136
}
142
- return < div className = ' noState' > { NO_STATE_MSG } </ div > ;
137
+ return < div className = " noState" > { NO_STATE_MSG } </ div > ;
143
138
} ;
144
139
145
140
return (
146
141
< Router >
147
- < div className = ' navbar' >
142
+ < div className = " navbar" >
148
143
< NavLink
149
- className = ' router-link'
150
- activeClassName = ' is-active'
144
+ className = " router-link"
145
+ activeClassName = " is-active"
151
146
exact
152
- to = '/'
147
+ to = "/"
153
148
>
154
149
Tree
155
150
</ NavLink >
156
151
< NavLink
157
- className = ' router-link'
158
- activeClassName = ' is-active'
159
- to = ' /history'
152
+ className = " router-link"
153
+ activeClassName = " is-active"
154
+ to = " /history"
160
155
>
161
156
History
162
157
</ NavLink >
163
- < NavLink className = ' router-link' activeClassName = ' is-active' to = ' /map' >
158
+ < NavLink className = " router-link" activeClassName = " is-active" to = " /map" >
164
159
Map
165
160
</ NavLink >
166
161
167
162
{ isRecoil && (
168
163
< NavLink
169
- className = ' router-link'
170
- activeClassName = ' is-active'
171
- to = ' /relationship'
164
+ className = " router-link"
165
+ activeClassName = " is-active"
166
+ to = " /relationship"
172
167
>
173
168
AtomsRecoil
174
169
</ NavLink >
175
170
) }
176
171
177
172
< NavLink
178
- className = ' router-link'
179
- activeClassName = ' is-active'
180
- to = ' /performance'
173
+ className = " router-link"
174
+ activeClassName = " is-active"
175
+ to = " /performance"
181
176
>
182
177
Performance
183
178
</ NavLink >
184
179
</ div >
185
180
< 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 } />
191
186
</ Switch >
192
187
</ Router >
193
188
) ;
0 commit comments