Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,6 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
</Typography>
)
}
if (linkData.type === "ga4toggle") {
return (
<li key={linkData.type} className={classes.innerNav}>
<GA4Toggle
setGAVersion={setGAVersion}
gaVersion={gaVersion}
/>
</li>
)
}
return (
<ListItem
button
Expand Down Expand Up @@ -255,16 +245,6 @@ const Template: React.FC<PropsWithChildren<LayoutProps & TemplateProps>> = ({
</li>
)
}
if (linkData.type === "ga4toggle") {
return (
<li key={linkData.type} className={classes.innerNav}>
<GA4Toggle
setGAVersion={setGAVersion}
gaVersion={gaVersion}
/>
</li>
)
}
return (
<li key={linkData.text}>
<Link
Expand Down
10 changes: 1 addition & 9 deletions src/components/Layout/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ interface LinkT {
href: string
}

interface ToggleT {
type: "ga4toggle"
versions: GAVersion[]
}
export type LinkData = LinkT | Heading | ToggleT
export type LinkData = LinkT | Heading

// TODO - Add an enum for the slugs so they aren't magic strings.
export const linkData: LinkData[] = [
Expand All @@ -26,10 +22,6 @@ export const linkData: LinkData[] = [
type: "heading",
versions: [GAVersion.GoogleAnalytics4, GAVersion.UniversalAnalytics],
},
{
type: "ga4toggle",
versions: [GAVersion.GoogleAnalytics4, GAVersion.UniversalAnalytics],
},
{
text: "Account Explorer",
href: "/account-explorer/",
Expand Down