Skip to content

Commit a8e59dd

Browse files
committed
removed state and diff buttons
1 parent e7c9536 commit a8e59dd

File tree

4 files changed

+12
-203
lines changed

4 files changed

+12
-203
lines changed

src/app/components/DiffRoute/Diff.tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/app/components/DiffRoute/DiffRoute.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/app/containers/StateContainer.tsx

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -18,47 +18,19 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
1818
viewIndex, // from 'tabs[currentTab]' object in 'MainContainer'
1919
webMetrics, // from 'tabs[currentTab]' object in 'MainContainer'
2020
currLocation, // from 'tabs[currentTab]' object in 'MainContainer'
21-
axSnapshots,// from 'tabs[currentTab]' object in 'MainContainer'
21+
axSnapshots, // from 'tabs[currentTab]' object in 'MainContainer'
2222
} = props;
2323

2424
return (
2525
<>
26-
<div className='state-container'>
27-
<div className='main-navbar-container'>
28-
<div className='main-navbar-text' />
29-
<div className='main-navbar'>
30-
<NavLink
31-
className={(navData) =>
32-
navData.isActive ? 'is-active main-router-link' : 'main-router-link'
33-
}
34-
to='/'
35-
>
36-
State
37-
</NavLink>
38-
<NavLink
39-
className={(navData) =>
40-
navData.isActive ? 'is-active main-router-link' : 'main-router-link'
41-
}
42-
to='/diff'
43-
>
44-
Diff
45-
</NavLink>
26+
<div className='state-container'>
27+
<div className='main-navbar-container'>
28+
<div className='main-navbar'></div>
4629
</div>
47-
</div>
48-
<Routes>
49-
<Route
50-
path='/diff/*'
51-
element={
52-
<div>
53-
<DiffRoute snapshot={snapshot} />
54-
{/* <Outlet/> */}
55-
</div>
56-
}
57-
/>
58-
<Route
59-
path='/*'
60-
element={
61-
<div style={{ height: '100%' }}>
30+
<Routes>
31+
<Route
32+
path='/*'
33+
element={
6234
<StateRoute
6335
axSnapshots={axSnapshots}
6436
webMetrics={webMetrics}
@@ -68,11 +40,10 @@ const StateContainer = (props: StateContainerProps): JSX.Element => {
6840
snapshots={snapshots}
6941
currLocation={currLocation}
7042
/>
71-
</div>
72-
}
73-
/>
74-
</Routes>
75-
</div>
43+
}
44+
/>
45+
</Routes>
46+
</div>
7647
</>
7748
);
7849
};

src/app/styles/layout/_stateContainer.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
fill: $state-background;
88
}
99

10-
.no-data-message {
11-
color: #ff0001;
12-
font: normal 13px $text-font-stack;
13-
padding: 10px;
14-
}
15-
1610
.state-container {
1711
.main-router-link {
1812
//diff button
@@ -102,12 +96,6 @@
10296
}
10397
}
10498

105-
.no-data-message {
106-
color: #ff0001;
107-
font: normal 13px $text-font-stack;
108-
padding: 10px;
109-
}
110-
11199
.performance-nav-bar-container {
112100
display: flex;
113101
border: $performance-subtab-border;

0 commit comments

Comments
 (0)