File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const VersionToggle: React.FC = () => {
3535 : 'v3' ;
3636
3737 // Hide v2 and total tab for now
38- const hideV2 = true ; // TODO: false to show v2
38+ const hideV2 = isAnalyticsPage ; // TODO: false to show v2. Set to false if isAnalyticsPage is true
3939 const hideTotal = true ; // TODO: false to show total
4040
4141 useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export const useAnalyticsVersion = () => {
134134 const v2 = config [ 'v2' ] ;
135135 const v3 = config [ 'v3' ] ;
136136 // const defaultVersion = v2 && v3 ? 'total' : v2 ? 'v2' : 'v3';
137- const defaultVersion = 'v3' ; // default to v3 for now
137+ const defaultVersion = v2 && v3 ? 'v3' : v2 ? 'v2' : 'v3' ; // default to v3 for now
138138 const params : any = useParams ( ) ;
139139 const version = params && params . version ? params . version : defaultVersion ;
140140 return version ;
You can’t perform that action at this time.
0 commit comments