Skip to content

Commit 934b569

Browse files
committed
remove UA toggle
1 parent 9ad994c commit 934b569

2 files changed

Lines changed: 1 addition & 29 deletions

File tree

src/components/Layout/index.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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

src/components/Layout/links.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff 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.
2319
export 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/",

0 commit comments

Comments
 (0)