File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,16 +204,6 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
204204 </ Typography >
205205 )
206206 }
207- if ( linkData . type === "ga4toggle" ) {
208- return (
209- < li key = { linkData . type } className = { classes . innerNav } >
210- < GA4Toggle
211- setGAVersion = { setGAVersion }
212- gaVersion = { gaVersion }
213- />
214- </ li >
215- )
216- }
217207 return (
218208 < ListItem
219209 button
@@ -255,16 +245,6 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
255245 </ li >
256246 )
257247 }
258- if ( linkData . type === "ga4toggle" ) {
259- return (
260- < li key = { linkData . type } className = { classes . innerNav } >
261- < GA4Toggle
262- setGAVersion = { setGAVersion }
263- gaVersion = { gaVersion }
264- />
265- </ li >
266- )
267- }
268248 return (
269249 < li key = { linkData . text } >
270250 < Link
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ interface LinkT {
1313 href : string
1414}
1515
16- interface ToggleT {
17- type : "ga4toggle"
18- versions : GAVersion [ ]
19- }
20- export type LinkData = LinkT | Heading | ToggleT
16+ export type LinkData = LinkT | Heading
2117
2218// TODO - Add an enum for the slugs so they aren't magic strings.
2319export const linkData : LinkData [ ] = [
@@ -26,10 +22,6 @@ export const linkData: LinkData[] = [
2622 type : "heading" ,
2723 versions : [ GAVersion . GoogleAnalytics4 , GAVersion . UniversalAnalytics ] ,
2824 } ,
29- {
30- type : "ga4toggle" ,
31- versions : [ GAVersion . GoogleAnalytics4 , GAVersion . UniversalAnalytics ] ,
32- } ,
3325 {
3426 text : "Account Explorer" ,
3527 href : "/account-explorer/" ,
You can’t perform that action at this time.
0 commit comments