From 9ecba1242119e97fcb38f20e45b2bd70d11490aa Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 22 Jun 2023 23:25:33 -0700 Subject: [PATCH] Revert server availability code (#333) Not ready for primetime --- components/Layout/index.tsx | 4 +++- pages/_app.tsx | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 20ffa423..4717da7b 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -77,7 +77,9 @@ const Layout = ({ children }: PropsWithChildren) => { return ( <> - {appState.version ? ServerAvailable() : ''} + {/* {appState.version ? ServerAvailable() : ''} */} + + {updateToast()}
{children}
) diff --git a/pages/_app.tsx b/pages/_app.tsx index d213c926..06cc101b 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -35,6 +35,11 @@ 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') @@ -130,11 +135,11 @@ function MyApp({ Component, pageProps }: AppProps) { - {!appState.version ? ( + + {/* {!appState.version ? ( serverUnavailable() ) : ( - - )} + )} */}