Skip to content

fix(theme/Layout): render beforeNavMenu correctly#2822

Merged
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
JounQin:fix/beforeNavMenu
Dec 29, 2025
Merged

fix(theme/Layout): render beforeNavMenu correctly#2822
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
JounQin:fix/beforeNavMenu

Conversation

@JounQin
Copy link
Copy Markdown
Collaborator

@JounQin JounQin commented Nov 28, 2025

Summary

render beforeNavMenu correctly

Related Issue

N/A

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 28, 2025 08:05
@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 28, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 4976b6d
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/694e41043893fa00080cc22c
😎 Deploy Preview https://deploy-preview-2822--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the rendering of the beforeNavMenu prop, which was previously not being passed from the Layout component to the Nav component, preventing it from being displayed.

  • Added beforeNavMenu to prop destructuring in Layout component
  • Passed beforeNavMenu prop to Nav component
  • Repositioned beforeNavMenu rendering in Nav component to appear after the Search component

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/src/theme/layout/Layout/index.tsx Added beforeNavMenu to destructuring and passed it to the Nav component to enable rendering
packages/core/src/theme/components/Nav/index.tsx Moved beforeNavMenu rendering position to after the Search component

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@JounQin JounQin requested a review from SoonIter November 28, 2025 09:00
Comment thread packages/core/src/theme/components/Nav/index.tsx
@JounQin JounQin requested a review from SoonIter December 26, 2025 08:02
@JounQin JounQin mentioned this pull request Dec 26, 2025
2 tasks
@JounQin
Copy link
Copy Markdown
Collaborator Author

JounQin commented Dec 29, 2025

I've made minimal changes instead. @SoonIter

Copy link
Copy Markdown
Member

@SoonIter SoonIter left a comment

Choose a reason for hiding this comment

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

thanks❤

@SoonIter SoonIter changed the title fix: render beforeNavMenu correctly fix(theme/Layout): render beforeNavMenu correctly Dec 29, 2025
@SoonIter SoonIter merged commit 3e88e13 into web-infra-dev:main Dec 29, 2025
9 checks passed
@JounQin JounQin deleted the fix/beforeNavMenu branch December 29, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants