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

feat: Added Pagination posts section successfully Issue 40 #60

Closed
wants to merge 3 commits into from

Conversation

MeetDOD
Copy link
Contributor

@MeetDOD MeetDOD commented Jun 1, 2024

Pull Request Resolves[#40]

Title: Applied Pagination in Style Share webapp Successfully.

Description:

  1. I had created a hook name currentPage and setcurrentPage which will change the number of posts with the const postsPerPage = 9.

  2. I had created handlePreviousPage which will decrement by - 1 and handleNextPage which will increment by + 1 per posts.

  3. Applied with filteredPosts.

Related Issues

Fixes #40

Changes Made

new feature introduced as pagination in posts page.

Screenshots

  1. 9 posts per page.

image

  1. For more posts do next or previous button.

image

I certify that I have carried out the relevant code of conduct and provided the requisite screenshot for validation by submitting this pull request.

Thank You for this contribution.

Copy link

vercel bot commented Jun 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
style-share ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2024 8:17am

Copy link

github-actions bot commented Jun 1, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@MeetDOD MeetDOD changed the title Issue 40 feat: Added Pagination posts section successfully Issue 40 Jun 1, 2024
Copy link
Owner

@VaibhavArora314 VaibhavArora314 left a comment

Choose a reason for hiding this comment

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

resolve merge conflicts, ui looks good to me
also, can you increase posts per page to 12 as for medium devices 2 are supposed to come in a row so the last post is alone in a row
also can you move the pagination logic to the backend as the no of posts increase it will increase client load to fetch all together

@MeetDOD
Copy link
Contributor Author

MeetDOD commented Jun 1, 2024

Ok i will do it @VaibhavArora314

@MeetDOD MeetDOD closed this Jun 1, 2024
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.

Pagination in Style Share
2 participants