From 3ccdc15392b12264ded53957286cd7a9049f299e Mon Sep 17 00:00:00 2001 From: Magak Emmanuel Date: Thu, 16 May 2024 20:14:04 +0300 Subject: [PATCH] hide feedback on site --- components/layouts/default.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/layouts/default.tsx b/components/layouts/default.tsx index 3101f3f..701710e 100644 --- a/components/layouts/default.tsx +++ b/components/layouts/default.tsx @@ -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' @@ -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 ( <> @@ -30,7 +31,7 @@ export default function Layout({ children }: { children: ReactNode }) {
{children}