Revert "Remove server availability code"

This reverts commit e146453b31.
This commit is contained in:
Justin Edmund 2023-06-22 23:23:28 -07:00
parent e146453b31
commit 9ed3a89a72
2 changed files with 4 additions and 10 deletions

View file

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

View file

@ -35,11 +35,6 @@ 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')
@ -135,11 +130,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>