Skip to content

Commit

Permalink
Merge pull request #478 from ShellarFX/main
Browse files Browse the repository at this point in the history
fix(docs): missing key in code examples
  • Loading branch information
jrgarciadev committed Jun 7, 2022
2 parents 9358a70 + 196a6c3 commit af859c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/docs/guide/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class MyDocument extends Document {
const initialProps = await Document.getInitialProps(ctx);
return {
...initialProps,
styles: [<>{initialProps.styles}</>]
styles: React.Children.toArray([initialProps.styles])
};
}

Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/guide/nextui-plus-nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MyDocument extends Document {
const initialProps = await Document.getInitialProps(ctx);
return {
...initialProps,
styles: <>{initialProps.styles}</>
styles: React.Children.toArray([initialProps.styles])
};
}

Expand Down

1 comment on commit af859c5

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for nextui-docs ready!

✅ Preview
https://nextui-docs-p57w16xtq-nextui-org.vercel.app

Built with commit af859c5.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.