[Fix] Make blog list cards clickable#214
Open
rahulrr-coder wants to merge 2 commits intovailabel:mainfrom
Open
[Fix] Make blog list cards clickable#214rahulrr-coder wants to merge 2 commits intovailabel:mainfrom
rahulrr-coder wants to merge 2 commits intovailabel:mainfrom
Conversation
|
@rahulrr-coder is attempting to deploy a commit to the vailabel Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
The changes are done and the PR is ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fix #213
This pull request refactors the blog listing and detail pages to improve code readability and streamline navigation. The main changes include simplifying function parameter destructuring, updating link structure for blog cards, and minor improvements to pagination logic.
Code readability and consistency:
generateMetadataandBlogDetailPagefunctions inapps/web/app/blogs/[slug]/page.tsxto use direct destructuring of theparamsobject in the function signature, reducing boilerplate and improving clarity. (apps/web/app/blogs/[slug]/page.tsxL8-R8, apps/web/app/blogs/[slug]/page.tsxL44-R39)apps/web/app/blogs/page.tsxby replacing||with the nullish coalescing operator??for safer default value handling.Navigation and UI improvements:
Linkcomponent to ensure the entire card is clickable, enhancing the user experience and accessibility. [1] [2]Linkto a styleddivinside the clickable card, preventing nested interactive elements and aligning with best practices.