Help to convert <a> tag to <Button> in pagination component #2465
Unanswered
mallusrgreatv2
asked this question in
Q&A
Replies: 1 comment
-
Here's a quick jab at it, I changed the pagination file to a client component to account for the client-side interactivity required for buttons (although this could be cleaned up by moving the button component into a separate file), I then created a new component to replace PaginationLink called PaginationButton and replaced uses of PaginationLink with PaginationButton. I also think that any component calling this new pagination variation might need to be a client component as well in order to pass onClick functions. Here's a link to my altered version of pagination. Hope this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have tried numerous ways. All the time, it keeps spitting out errors. Can someone do it for me?
Beta Was this translation helpful? Give feedback.
All reactions