Skip to content

Commit 3970662

Browse files
authored
Merge pull request #9 from C-STYR/default
Re-ordered default component view to give preference to Performance and Map
2 parents 6165841 + c8cec40 commit 3970662

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default function ComponentMap({
188188
left = node.y;
189189
}
190190

191-
//mousing controls
191+
//mousing controls & Tooltip display logic
192192
const handleMouseOver = (event) => {
193193
() => dispatch(onHover(node.data.rtid));
194194
const coords = localPoint(

src/app/components/StateRoute.tsx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,17 @@ const StateRoute = (props: StateRouteProps) => {
136136
return (
137137
<Router>
138138
<div className="navbar">
139-
<NavLink
139+
<NavLink
140140
className="router-link"
141141
activeClassName="is-active"
142-
exact
143-
to="/"
142+
exact to="/"
144143
>
145-
Tree
144+
Performance
145+
</NavLink>
146+
<NavLink className="router-link"
147+
activeClassName="is-active"
148+
to="/map">
149+
Map
146150
</NavLink>
147151
<NavLink
148152
className="router-link"
@@ -151,8 +155,12 @@ const StateRoute = (props: StateRouteProps) => {
151155
>
152156
History
153157
</NavLink>
154-
<NavLink className="router-link" activeClassName="is-active" to="/map">
155-
Map
158+
<NavLink
159+
className="router-link"
160+
activeClassName="is-active"
161+
to="/tree"
162+
>
163+
Tree
156164
</NavLink>
157165

158166
{isRecoil && (
@@ -165,20 +173,13 @@ const StateRoute = (props: StateRouteProps) => {
165173
</NavLink>
166174
)}
167175

168-
<NavLink
169-
className="router-link"
170-
activeClassName="is-active"
171-
to="/performance"
172-
>
173-
Performance
174-
</NavLink>
175176
</div>
176177
<Switch>
177178
<Route path="/map" render={renderComponentMap} />
178179
<Route path="/history" render={renderHistory} />
179180
<Route path="/relationship" render={renderAtomsRelationship} />
180-
<Route path="/performance" render={renderPerfView} />
181-
<Route path="/" render={renderTree} />
181+
<Route path="/tree" render={renderTree} />
182+
<Route path="/" render={renderPerfView} />
182183
</Switch>
183184
</Router>
184185
);

0 commit comments

Comments
 (0)