Skip to content

Commit

Permalink
[examples] Fix Next.js errors (mui#35246)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
  • Loading branch information
oliviertassinari authored and felipe.richter committed Dec 6, 2022
1 parent f33d632 commit 4026c99
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions examples/nextjs-with-typescript-v4-migration/package.json
Expand Up @@ -10,23 +10,23 @@
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
},
"dependencies": {
"@emotion/cache": "^11.7.1",
"@emotion/react": "^11.9.0",
"@emotion/server": "^11.4.0",
"@emotion/styled": "^11.8.1",
"@emotion/cache": "latest",
"@emotion/react": "latest",
"@emotion/server": "latest",
"@emotion/styled": "latest",
"@mui/icons-material": "latest",
"@mui/material": "latest",
"@mui/styles": "latest",
"autoprefixer": "latest",
"clean-css": "latest",
"next": "latest",
"next": "^12.0.0",
"postcss": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "17.0.2",
"@types/react": "^17.0.0",
"eslint": "latest",
"eslint-config-next": "latest",
"typescript": "latest"
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-with-typescript-v4-migration/src/Link.tsx
Expand Up @@ -10,7 +10,7 @@ const Anchor = styled('a')({});

interface NextLinkComposedProps
extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
Omit<NextLinkProps, 'href' | 'as' | 'onClick' | 'onMouseEnter'> {
Omit<NextLinkProps, 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart'> {
to: NextLinkProps['href'];
linkAs?: NextLinkProps['as'];
}
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-with-typescript/src/Link.tsx
Expand Up @@ -10,7 +10,7 @@ const Anchor = styled('a')({});

interface NextLinkComposedProps
extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
Omit<NextLinkProps, 'href' | 'as' | 'onClick' | 'onMouseEnter' | 'onTouchStart'> {
Omit<NextLinkProps, 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart'> {
to: NextLinkProps['href'];
linkAs?: NextLinkProps['as'];
}
Expand Down

0 comments on commit 4026c99

Please sign in to comment.