Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neo773 committed Aug 26, 2024
1 parent 9e8650f commit c9756de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
29 changes: 11 additions & 18 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,17 @@ const Home = (): JSX.Element => {
}, [])

return (
<>
<Announcement
text={"📣 Catch us at GraphQLConf 2024 • September 10-12 • San Francisco • "}
refLink={"https://graphql.org/conf/2024/schedule/870876ffad45b79d11e09393e7f22587/"}
refText={" Know more → "}
/>
<Layout title={PageTitle.HOME} description={PageDescription.HOME}>
<HomePage />
{!isDevelopment && (
<img
style={{height: 0, width: 0}}
referrerPolicy="no-referrer-when-downgrade"
src="https://static.scarf.sh/a.png?x-pxid=45ec365f-ab8a-4848-a6a9-bd4ffecfe72e"
alt="pixel"
/>
)}
</Layout>
</>
<Layout title={PageTitle.HOME} description={PageDescription.HOME}>
<HomePage />
{!isDevelopment && (
<img
style={{height: 0, width: 0}}
referrerPolicy="no-referrer-when-downgrade"
src="https://static.scarf.sh/a.png?x-pxid=45ec365f-ab8a-4848-a6a9-bd4ffecfe72e"
alt="pixel"
/>
)}
</Layout>
)
}

Expand Down
6 changes: 6 additions & 0 deletions src/theme/Layout/Provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -31,6 +32,11 @@ const Provider = composeProviders([
const LayoutProvider = ({children}: LayoutProviderProps) => {
return (
<Provider>
<Announcement
text={"📣 Catch us at GraphQLConf 2024 • September 10-12 • San Francisco • "}
refLink={"https://graphql.org/conf/2024/schedule/870876ffad45b79d11e09393e7f22587/"}
refText={" Know more → "}
/>
{children}
<Footer />
</Provider>
Expand Down

0 comments on commit c9756de

Please sign in to comment.