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 (
<>
{appState.version ? ServerAvailable() : ''}
{ServerAvailable()}
{/* {appState.version ? ServerAvailable() : ''} */}
<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>