clean _app.tsx
This commit is contained in:
+1
-13
@@ -1,7 +1,6 @@
|
||||
import React from "react";
|
||||
// import App from "next/app";
|
||||
import type { AppProps /* , AppContext' */ } from "next/app";
|
||||
import Head from "next/head";
|
||||
import { AppProps } from "next/app";
|
||||
import styled, { createGlobalStyle } from "styled-components";
|
||||
import { ToastContainer } from "react-toastify";
|
||||
import { colors } from "@theme/colors";
|
||||
@@ -151,15 +150,4 @@ const Web20App = ({ Component, pageProps }: AppProps) => (
|
||||
</>
|
||||
);
|
||||
|
||||
// Only uncomment this method if you have blocking data requirements for
|
||||
// every single page in your application. This disables the ability to
|
||||
// perform automatic static optimization, causing every page in your app to
|
||||
// be server-side rendered.
|
||||
//
|
||||
// export const getInitialProps = async (appContext: AppContext) => {
|
||||
// // calls page's `getInitialProps` and fills `appProps.pageProps`
|
||||
// const appProps = await App.getInitialProps(appContext);
|
||||
// return { ...appProps }
|
||||
// }
|
||||
|
||||
export default Web20App;
|
||||
|
||||
Reference in New Issue
Block a user