-
Notifications
You must be signed in to change notification settings - Fork 50
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
fixed ui loader on doc page #266
fixed ui loader on doc page #266
Conversation
@WilliamDavidson-02 is attempting to deploy a commit to the devvsakib's projects Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes made to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, WilliamDavidson-02! 🎉 Thank you for submitting your first pull request to GES. Your contribution is valuable and we appreciate your efforts to improve our project. We'll review your changes and provide feedback as soon as possible. Keep up the great work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/pages/Doc/index.jsx (1 hunks)
Additional comments not posted (1)
src/pages/Doc/index.jsx (1)
48-48
: Ensure unique keys in list rendering.The addition of the
key
prop to theLink
component usingitem.title
is crucial for React's reconciliation process and helps prevent potential issues with list rendering performance. Ensure thatitem.title
is unique across all items to avoid key collisions.The code changes are approved.
{loading ? ( | ||
<div className='grid place-content-center mx-auto md:max-w-2xl aspect-video'> | ||
<Spin size="large" /> | ||
</div> | ||
) : (<ul className='grid gap-5 mx-auto md:max-w-2xl'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor suggestion: Centralize loading spinner logic.
The changes made to centralize the loading spinner in a grid layout are visually appealing and align with the PR's objectives to enhance the UI on the documentation page. However, consider extracting this loading spinner logic into a separate component for better reusability and maintainability across different parts of the application.
Consider creating a LoadingSpinner
component that encapsulates the grid and spinner logic:
const LoadingSpinner = () => (
<div className='grid place-content-center mx-auto md:max-w-2xl aspect-video'>
<Spin size="large" />
</div>
);
// Usage in DocList
{loading ? <LoadingSpinner /> : ...}
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
Summary by CodeRabbit
New Features
Bug Fixes