Skip to content

Commit

Permalink
hide feedback on site
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelgeek committed May 16, 2024
1 parent 8f14df7 commit 3ccdc15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/layouts/default.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Head from 'next/head'
import Script from 'next/script'
import React, { ReactNode } from 'react'
import React, { ReactNode, useContext } from 'react'
import { GoogleOAuthProvider } from '@react-oauth/google'
import { ThemeProvider } from '../../context/ThemeContext'
import { ThemeContext, ThemeProvider } from '../../context/ThemeContext'
import { Footer } from './components/Footer'
import { NavBar } from './components/NavBar'
import { NotificationsPrompt } from './components/NotificationsPrompt'
Expand All @@ -12,6 +12,7 @@ import { EventFeedback } from './components/EventFeedback'

export default function Layout({ children }: { children: ReactNode }) {
const gTagCode = process.env.NEXT_PUBLIC_GOOGLE_TAG
const { isEventReady } = useContext(ThemeContext)
return (
<>
<Head>
Expand All @@ -30,7 +31,7 @@ export default function Layout({ children }: { children: ReactNode }) {
<main>{children}</main>
</div>
<Footer />
<EventFeedback />
{isEventReady && <EventFeedback />}
<NotificationsPrompt />
</div>
</GoogleOAuthProvider>
Expand Down

0 comments on commit 3ccdc15

Please sign in to comment.