@@ -26,18 +26,14 @@ const VersionToggle: React.FC = () => {
26
26
const history = useHistory ( ) ;
27
27
const isAnalyticsPage = history . location . pathname . includes ( '/analytics' ) ;
28
28
const isPoolPage = history . location . pathname . includes ( '/pools' ) ;
29
- const analyticsVersion = useAnalyticsVersion ( ) ; // TODO: change default version in useAnalyticsVersion if it's needed to show total and v2
29
+ const analyticsVersion = useAnalyticsVersion ( ) ;
30
30
const version =
31
31
params && params . version
32
32
? params . version
33
33
: isAnalyticsPage
34
34
? analyticsVersion
35
35
: 'v3' ;
36
36
37
- // Hide v2 and total tab for now
38
- const hideV2 = isAnalyticsPage ; // TODO: false to show v2. Set to false if isAnalyticsPage is true
39
- const hideTotal = true ; // TODO: false to show total
40
-
41
37
useEffect ( ( ) => {
42
38
updateIsV2 ( version === 'v2' ) ;
43
39
updateIsLpLock ( version === 'lpLocker' ) ;
@@ -71,7 +67,7 @@ const VersionToggle: React.FC = () => {
71
67
72
68
return (
73
69
< Box className = 'version-toggle-container' >
74
- { ! hideV2 && v2Available && (
70
+ { v2Available && (
75
71
< Box
76
72
className = { version === 'v2' ? 'version-toggle-active' : '' }
77
73
onClick = { ( ) => {
@@ -147,16 +143,14 @@ const VersionToggle: React.FC = () => {
147
143
< small > { t ( 'liquidityHub' ) } </ small >
148
144
</ Box >
149
145
) }
150
- { ! hideTotal && (
151
- < Box
152
- className = { version === 'total' ? 'version-toggle-active' : '' }
153
- onClick = { ( ) => {
154
- redirectWithVersion ( 'total' ) ;
155
- } }
156
- >
157
- < small > { t ( 'total' ) } </ small >
158
- </ Box >
159
- ) }
146
+ < Box
147
+ className = { version === 'total' ? 'version-toggle-active' : '' }
148
+ onClick = { ( ) => {
149
+ redirectWithVersion ( 'total' ) ;
150
+ } }
151
+ >
152
+ < small > { t ( 'total' ) } </ small >
153
+ </ Box >
160
154
</ >
161
155
) }
162
156
</ Box >
0 commit comments