We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 459838b + b414d74 commit 321bb0aCopy full SHA for 321bb0a
src/setup/steps/add-content/generate-app.ts
@@ -2,16 +2,16 @@ import endent from "endent"
2
import { ValidCNSInputs } from "../../../create-next-stack-types"
3
4
export const generateApp = (inputs: ValidCNSInputs): string => endent/* tsx */ `
5
- import { AppType } from "next/dist/next-server/lib/utils";
+ import { AppProps } from "next/app";
6
${
7
inputs.flags.styling === "css-modules"
8
? endent/* jsx */ `import "../styles/global-styles.css";`
9
: ""
10
}
11
12
- const MyApp: AppType = ({ Component, pageProps }) => {
+ const CustomApp = ({ Component, pageProps }: AppProps) => {
13
return <Component {...pageProps} />;
14
};
15
16
- export default MyApp;
+ export default CustomApp;
17
`
0 commit comments