From c9756de39a7ae1f2de9dd9c6add68ae85b8d35c8 Mon Sep 17 00:00:00 2001 From: neo773 <62795688+neo773@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:47:27 +0530 Subject: [PATCH] fix --- src/pages/index.tsx | 29 +++++++++++------------------ src/theme/Layout/Provider/index.tsx | 6 ++++++ 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 4bc36a74b0..8f3356206b 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -16,24 +16,17 @@ const Home = (): JSX.Element => { }, []) return ( - <> - - - - {!isDevelopment && ( - pixel - )} - - + + + {!isDevelopment && ( + pixel + )} + ) } diff --git a/src/theme/Layout/Provider/index.tsx b/src/theme/Layout/Provider/index.tsx index 1e350344fb..c6668071ac 100644 --- a/src/theme/Layout/Provider/index.tsx +++ b/src/theme/Layout/Provider/index.tsx @@ -10,6 +10,7 @@ import { } from "@docusaurus/theme-common/internal" import GithubStarsProvider from "@site/src/components/shared/GithubStarsProvider" import Footer from "@site/src/components/shared/Footer" +import Announcement from "@site/src/components/shared/Announcement" // Define the type for LayoutProvider props type LayoutProviderProps = { @@ -31,6 +32,11 @@ const Provider = composeProviders([ const LayoutProvider = ({children}: LayoutProviderProps) => { return ( + {children}