Skip to content

Commit 321bb0a

Browse files
authored
Merge pull request #82 from akd-io/feature/fix-app-props-type
Fix app props type
2 parents 459838b + b414d74 commit 321bb0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/setup/steps/add-content/generate-app.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import endent from "endent"
22
import { ValidCNSInputs } from "../../../create-next-stack-types"
33

44
export const generateApp = (inputs: ValidCNSInputs): string => endent/* tsx */ `
5-
import { AppType } from "next/dist/next-server/lib/utils";
5+
import { AppProps } from "next/app";
66
${
77
inputs.flags.styling === "css-modules"
88
? endent/* jsx */ `import "../styles/global-styles.css";`
99
: ""
1010
}
1111
12-
const MyApp: AppType = ({ Component, pageProps }) => {
12+
const CustomApp = ({ Component, pageProps }: AppProps) => {
1313
return <Component {...pageProps} />;
1414
};
1515
16-
export default MyApp;
16+
export default CustomApp;
1717
`

0 commit comments

Comments
 (0)