Revert server availability code (#333)

Not ready for primetime
This commit is contained in:
Justin Edmund 2023-06-22 23:25:33 -07:00 committed by GitHub
parent 9ed3a89a72
commit 9ecba12421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -77,7 +77,9 @@ const Layout = ({ children }: PropsWithChildren<Props>) => {
return (
<>
{appState.version ? ServerAvailable() : ''}
{/* {appState.version ? ServerAvailable() : ''} */}
<TopHeader />
{updateToast()}
<main>{children}</main>
</>
)

View file

@ -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) {
<ToastProvider swipeDirection="right">
<TooltipProvider>
<Layout>
{!appState.version ? (
<Component {...pageProps} />
{/* {!appState.version ? (
serverUnavailable()
) : (
<Component {...pageProps} />
)}
)} */}
</Layout>
<Viewport className="ToastViewport" />
</TooltipProvider>