Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: Layout element and style improvements #396

Merged
merged 6 commits into from
Mar 7, 2022
Merged

breaking: Layout element and style improvements #396

merged 6 commits into from
Mar 7, 2022

Conversation

shuding
Copy link
Owner

@shuding shuding commented Mar 7, 2022

With the docs theme, it's now required to have this layout function:

export default function MyApp({ Component, pageProps }) {
  // Use the layout defined at the page level, if available
  const getLayout = Component.getLayout || ((page) => page);

  return getLayout(<Component {...pageProps} />);
}

@vercel
Copy link

vercel bot commented Mar 7, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

nextra – ./

🔍 Inspect: https://vercel.com/vercel/nextra/86JZvTVpx4YiF2Nj5rLUG5cJLspC
✅ Preview: Canceled

nextra-theme-docs-dev – ./examples/swr-site

🔍 Inspect: https://vercel.com/vercel/nextra-theme-docs-dev/GFtMa6Rga48Vs2bVCZW1fvRXF7Ew
✅ Preview: https://nextra-theme-docs-dev-git-shu-d2f7.vercel.sh

@shuding shuding merged commit 1bd3543 into core Mar 7, 2022
@shuding shuding deleted the shu/d2f7 branch March 7, 2022 18:05
tatukoivisto pushed a commit to tatukoivisto/nextra that referenced this pull request Aug 20, 2023
breaking: Layout element and style improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant