A React wallpaper app that uses the Wallhaven API is a web-based application that allows users to search, browse, and download high-quality wallpapers for their desktops, mobile devices, or any other device.
Bug
When navigating through the pages of wallpapers, the pagination allows users to go beyond the last page of wallpapers.
To Reproduce
Steps to reproduce the behavior:
Go to the page with wallpapers
Click on the pagination control to go to the next page
Continue clicking until you go beyond the last page of wallpapers
Expected behavior
The pagination should not allow users to go beyond the last page of wallpapers. It should either disable the "Next" button or show a message indicating that there are no more wallpapers.
Actual behavior
The pagination allows users to continue going to pages beyond the last page of wallpapers.