Remove server availability code

Not ready for prime time
This commit is contained in:
Justin Edmund 2023-06-22 23:22:57 -07:00
parent 2f572dc71c
commit e146453b31
2 changed files with 10 additions and 4 deletions

View file

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

View file

@ -35,6 +35,11 @@ function MyApp({ Component, pageProps }: AppProps) {
useEffect(() => () => unsubscribe(), []) useEffect(() => () => unsubscribe(), [])
useEffect(() => {
console.log('granblue.team version')
console.log(appState.version)
})
const accountCookie = getCookie('account') const accountCookie = getCookie('account')
const userCookie = getCookie('user') const userCookie = getCookie('user')
@ -130,11 +135,11 @@ function MyApp({ Component, pageProps }: AppProps) {
<ToastProvider swipeDirection="right"> <ToastProvider swipeDirection="right">
<TooltipProvider> <TooltipProvider>
<Layout> <Layout>
{!appState.version ? ( <Component {...pageProps} />
{/* {!appState.version ? (
serverUnavailable() serverUnavailable()
) : ( ) : (
<Component {...pageProps} /> )} */}
)}
</Layout> </Layout>
<Viewport className="ToastViewport" /> <Viewport className="ToastViewport" />
</TooltipProvider> </TooltipProvider>