Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
rtay1188 committed Jan 14, 2025
1 parent 387ab61 commit 49188a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "@/styles/globals.css";
import type { AppProps } from "next/app";
import { AppCacheProvider } from '@mui/material-nextjs/v15-pagesRouter';

export default function App({ Component, pageProps }: AppProps, props: any) {
export default function App({ Component, pageProps, ...props }: AppProps) {
return (
<AppCacheProvider {...props}>
<Component {...pageProps} />;
Expand Down
6 changes: 3 additions & 3 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Html, Head, Main, NextScript } from "next/document";
import { Html, Head, Main, NextScript, DocumentContext } from "next/document";
import { DocumentHeadTags, DocumentHeadTagsProps, documentGetInitialProps } from '@mui/material-nextjs/v15-pagesRouter';

export default function Document(props: any & DocumentHeadTagsProps) {
export default function Document(props: DocumentHeadTagsProps) {
return (
<Html lang="en">
<Head>
Expand All @@ -15,7 +15,7 @@ export default function Document(props: any & DocumentHeadTagsProps) {
);
}

Document.getInitialProps = async (ctx: any) => {
Document.getInitialProps = async (ctx: DocumentContext) => {
const finalProps = await documentGetInitialProps(ctx);
return finalProps;
};

0 comments on commit 49188a8

Please sign in to comment.