-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dark mode support to listings and also fix functionality to next/…
…previous buttons (#258) * Make dark mode version of ListingGridCard It may not be a bad idea to - add a placeholder image/text when none is present for a listing (even something as simple as "No Image" to make it clear that this was intentional from the part of the listing creator, and not a network error) - remove the `animate-pulse` effect in dark mode; I hesitantly kept it in for now but it is plausible that animate-pulse loses its magic in dark mode. * Make previous/next buttons on left/right of screen * Fix Listings button functionality - the previous and next buttons took people to /browse/PAGENUMBER rather than /browse/?page=PAGENUMBER, where the frontend expects the latter. Fixed. - having fixed that, when we go to a new page, the listings do not refresh because the useEffect calling handleSearch has never been called; the useEffect hook now updates when pageNumber changes. * Add dark variants for Previous/Next buttons
- Loading branch information
1 parent
d277aad
commit b4935c3
Showing
3 changed files
with
23 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters