From 9ed3a89a72f598c5dddd03d1c684175ba871f1b9 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Jun 2023 23:23:28 -0700 Subject: [PATCH] Revert "Remove server availability code" This reverts commit e146453b3109964f59d3ac0f261bbbebc7156232. --- components/Layout/index.tsx | 3 +-- pages/_app.tsx | 11 +++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index d88b3a18..20ffa423 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,8 +77,7 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {ServerAvailable()} - {/* {appState.version ? ServerAvailable() : ''} */} + {appState.version ? ServerAvailable() : ''}
{children}
) diff --git a/pages/_app.tsx b/pages/_app.tsx index 9dcd7e2f..d213c926 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -35,11 +35,6 @@ function MyApp({ Component, pageProps }: AppProps) { useEffect(() => () => unsubscribe(), []) - useEffect(() => { - console.log('granblue.team version') - console.log(appState.version) - }) - const accountCookie = getCookie('account') const userCookie = getCookie('user') @@ -135,11 +130,11 @@ function MyApp({ Component, pageProps }: AppProps) { - - {/* {!appState.version ? ( + {!appState.version ? ( serverUnavailable() ) : ( - )} */} + + )}