diff --git a/src/theme/Navbar/Posthog/index.js b/src/theme/DocRoot/Layout/Posthog/index.js similarity index 96% rename from src/theme/Navbar/Posthog/index.js rename to src/theme/DocRoot/Layout/Posthog/index.js index a1ce2da13..827f3d068 100644 --- a/src/theme/Navbar/Posthog/index.js +++ b/src/theme/DocRoot/Layout/Posthog/index.js @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react'; +import { useState, useEffect } from 'react'; import posthog from 'posthog-js'; // 🦔 config diff --git a/src/theme/DocRoot/Layout/index.js b/src/theme/DocRoot/Layout/index.js index 4027d2b15..9413a5916 100644 --- a/src/theme/DocRoot/Layout/index.js +++ b/src/theme/DocRoot/Layout/index.js @@ -6,6 +6,7 @@ import DocRootLayoutMain from '@theme/DocRoot/Layout/Main'; import styles from './styles.module.css'; import BrowserOnly from '@docusaurus/BrowserOnly'; import { AiChatBot } from '@site/src/components/AiChatBot/AiChatBot'; +import UserFetcher from '@theme/DocRoot/Layout/Posthog'; export default function DocRootLayout({ children }) { const sidebar = useDocsSidebar(); @@ -14,6 +15,7 @@ export default function DocRootLayout({ children }) { return (