Skip to content

Commit

Permalink
fix(examples/with-styled-components-babel): list should have unique k…
Browse files Browse the repository at this point in the history
…ey (vercel#40215)

Fixes vercel#40201 

## Bug

- [ ] Related issues linked using `fixes vercel#40201`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`
  • Loading branch information
jeferson-sb authored and atilafassina committed Sep 5, 2022
1 parent 111cb7f commit cc6b0be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions examples/with-styled-components-babel/package.json
Expand Up @@ -7,16 +7,16 @@
},
"dependencies": {
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"styled-components": "^5.2.3"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"styled-components": "^5.3.5"
},
"devDependencies": {
"@types/node": "17.0.24",
"@types/react": "^17.0.2",
"@types/styled-components": "5.1.25",
"babel-plugin-styled-components": "^1.12.0",
"typescript": "4.6.3"
"@types/node": "18.7.14",
"@types/react": "^18.0.18",
"@types/styled-components": "5.1.26",
"babel-plugin-styled-components": "^2.0.7",
"typescript": "4.8.2"
}
}
6 changes: 3 additions & 3 deletions examples/with-styled-components-babel/pages/_document.tsx
Expand Up @@ -18,12 +18,12 @@ export default class MyDocument extends Document {
const initialProps = await Document.getInitialProps(ctx)
return {
...initialProps,
styles: [
styles: (
<>
{initialProps.styles}
{sheet.getStyleElement()}
</>,
],
</>
),
}
} finally {
sheet.seal()
Expand Down

0 comments on commit cc6b0be

Please sign in to comment.