Re-add server availability code

This commit is contained in:
Justin Edmund 2023-06-23 11:55:38 -07:00
parent ac1193a4e5
commit 7a3a0cc827
2 changed files with 5 additions and 8 deletions

View file

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

View file

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