Sfoglia il codice sorgente

fix loading page style

AykutSarac 3 anni fa
parent
commit
d6ddcd31fd
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/pages/_app.tsx

+ 3 - 2
src/pages/_app.tsx

@@ -25,12 +25,13 @@ function AykutSarac({ Component, pageProps }: AppProps) {
 
   if (pageLoading)
     return (
-      <>
+      <ThemeProvider theme={darkTheme}>
+        <GlobalStyle />
         <Head>
           <title>Loading... | JSON Visio</title>
         </Head>
         <Loading />
-      </>
+      </ThemeProvider>
     );
 
   return (