refactor(ui): request list now adds a page query parameter for switching pages

this helps return back to the page you were last looking at when navigated to and from the request
list.
This commit is contained in:
sct
2021-03-06 08:15:39 +00:00
parent 7289872937
commit 7aa0239cd9
2 changed files with 27 additions and 11 deletions

View File

@@ -136,7 +136,9 @@ const RequestItem: React.FC<RequestItemProps> = ({
<div
className="absolute inset-0 z-0 w-full bg-center bg-cover lg:w-2/3"
style={{
backgroundImage: `linear-gradient(90deg, rgba(31, 41, 55, 0.47) 0%, rgba(31, 41, 55, 1) 100%), url(//image.tmdb.org/t/p/w1920_and_h800_multi_faces/${title.backdropPath})`,
backgroundImage: title.backdropPath
? `linear-gradient(90deg, rgba(31, 41, 55, 0.47) 0%, rgba(31, 41, 55, 1) 100%), url(//image.tmdb.org/t/p/w1920_and_h800_multi_faces/${title.backdropPath})`
: undefined,
}}
/>
<div className="relative flex flex-col justify-between w-full sm:flex-row">