chore: fix comment and feature merge master #43899
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 2b0d22e
This pull request improves the documentation site layout and style, refactors some components to use better props and types, and enhances the readability of some test cases and code files. It mainly affects the
.dumi
folder and thecomponents/modal
folder.🔍 Walkthrough
🤖 Generated by Copilot at 2b0d22e
ComponentItem
andAuthorAvatar
components withReact.FC
type for better type checking and readability (link, link)Breadcrumb
component to useitems
prop instead ofchildren
prop for conciseness and consistency (link)useContext
hook andSiteContext
andSiteContextProps
types to access site context values (link, link)isMobile
value from site context to determine device type (link, link)PrevAndNext
component based onisMobile
value to avoid showing navigation buttons on mobile devices (link)listMobile
style toContributorsList
component based onisMobile
value to adjust layout on mobile devices (link)hook.test.tsx
(link)useModal/index.tsx
andContent/index.tsx
(link, link)cache
prop to front ofContributorsList
component for convention and readability (link)