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

fix: Pager added, improves p/demo/ui improvements #2675

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AliSinaDevelo
Copy link

@AliSinaDevelo AliSinaDevelo commented Aug 10, 2024

corresponds to #903 p/demo/ui improvements, pager added with unit tests

pager type struct defined to hold the page user is corrently on, total number of pages, and the prefix for the url used go generate pages.
the methods append the page number to the PathPredix to get complete URL for each page link.

several unit tests added to ui_test.gno:
TestPagerSinglePage
TestPagerMultiplePages
TestPagerFirstPage
TestPagerLastPage

@github-actions github-actions bot added the 🧾 package/realm Tag used for new Realms or Packages. label Aug 10, 2024
@AliSinaDevelo AliSinaDevelo changed the title Pager added, improves p/demo/ui improvements #903 Pager added, improves p/demo/ui improvements Aug 10, 2024
@AliSinaDevelo AliSinaDevelo changed the title Pager added, improves p/demo/ui improvements fix: Pager added, improves p/demo/ui improvements Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧾 package/realm Tag used for new Realms or Packages.
Projects
Status: No status
Status: In Review
Development

Successfully merging this pull request may close these issues.

1 participant