sujaltangde / JobLane

JobLane - Full Stack Job application portal built using MERN Stack
https://joblane.vercel.app/
58 stars 57 forks source link

Replace "Previous" and "Next" buttons with "Refresh" button when no search results are found #125

Open kushalkumar1362 opened 6 months ago

kushalkumar1362 commented 6 months ago

Description:

When a user performs a search and no job results are found, the "Previous" and "Next" buttons are still displayed. This is confusing for users because there are no pages to navigate. Instead of showing these buttons, a "Refresh" button should be displayed to allow users to retry their search.

Steps to Reproduce:

  1. Go to the job search page.
  2. Perform a search with criteria that return no results.
  3. Observe that the "Previous" and "Next" buttons are still visible.

Expected Behavior:

When no search results are found, the "Previous" and "Next" buttons should be replaced with a "Refresh" button.

Screenshots:

Screenshot (360)

The screenshot shows no search results with the Previous and Next buttons

Possible Solution:

Additional Information:

Please Assign this tasks to me under gssoc with level label