parent
9ed3a89a72
commit
9ecba12421
2 changed files with 11 additions and 4 deletions
|
|
@ -77,7 +77,9 @@ const Layout = ({ children }: PropsWithChildren<Props>) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
{appState.version ? ServerAvailable() : ''}
|
||||
{/* {appState.version ? ServerAvailable() : ''} */}
|
||||
<TopHeader />
|
||||
{updateToast()}
|
||||
<main>{children}</main>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue