Skip to content

Commit 73952ee

Browse files
committed
added and commented out aliasing for hierarchy and viewIndex deconstruction
1 parent 8dab362 commit 73952ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const StateRoute = (props: StateRouteProps) => {
3535

3636
const { tabs, currentTab }: MainState = useSelector((state: RootState) => state.main);
3737
const { hierarchy, sliderIndex, viewIndex } = tabs[currentTab];
38+
// const hierarchy = propsHierarchy || tabsHierarchy; JR: RETURN TO THIS: alias to deconstruct from props and tab with the same name, aliases were deleted above
39+
// const viewIndex = propsViewIndex || tabsViewIndex;
3840

3941
const renderComponentMap = () => {
4042
if (hierarchy) {
@@ -235,8 +237,7 @@ const StateRoute = (props: StateRouteProps) => {
235237
<NavLink className='router-link history-tab' to='/history'>
236238
History
237239
</NavLink>
238-
<NavLink
239-
className='router-link web-metrics-tab' to='/webMetrics'>
240+
<NavLink className='router-link web-metrics-tab' to='/webMetrics'>
240241
Web Metrics
241242
</NavLink>
242243
<NavLink className='router-link tree-tab' to='/tree'>

0 commit comments

Comments
 (0)