From 7a3a0cc827f406ab2936cc88c7db8e1f7a1e44ef Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 23 Jun 2023 11:55:38 -0700 Subject: [PATCH] Re-add server availability code --- components/Layout/index.tsx | 4 +--- pages/_app.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 4717da7b..20ffa423 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,9 +77,7 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {/* {appState.version ? ServerAvailable() : ''} */} - - {updateToast()} + {appState.version ? ServerAvailable() : ''}
{children}
) diff --git a/pages/_app.tsx b/pages/_app.tsx index 06cc101b..92ff0856 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -36,8 +36,7 @@ function MyApp({ Component, pageProps }: AppProps) { useEffect(() => () => unsubscribe(), []) useEffect(() => { - console.log('granblue.team version:') - console.log(appState.version) + console.log(`granblue.team version: ${appState.version?.version}`) }, []) const accountCookie = getCookie('account') @@ -135,11 +134,11 @@ function MyApp({ Component, pageProps }: AppProps) { - - {/* {!appState.version ? ( + {!appState.version ? ( serverUnavailable() ) : ( - )} */} + + )}