Browse Source

fix loading page style

AykutSarac 3 years ago
parent
commit
d6ddcd31fd
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/pages/_app.tsx

+ 3 - 2
src/pages/_app.tsx

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