From 3911459eed4606c9f2f4e568457125387050b72a Mon Sep 17 00:00:00 2001 From: prayag17 Date: Thu, 27 Apr 2023 17:59:04 +0530 Subject: [PATCH] Update libView and titlePage #26 --- src/routes/item/index.jsx | 38 +++++++++++++++++++++++++++++++++++- src/routes/library/index.jsx | 11 ++++++++++- 2 files changed, 47 insertions(+), 2 deletions(-) diff --git a/src/routes/item/index.jsx b/src/routes/item/index.jsx index e4d0602..b8cd37e 100644 --- a/src/routes/item/index.jsx +++ b/src/routes/item/index.jsx @@ -30,7 +30,7 @@ import { AvatarImage } from "../../components/avatar/avatar"; import { Blurhash } from "react-blurhash"; import { useDispatch, useSelector } from "react-redux"; -import { useParams, useNavigate } from "react-router-dom"; +import { useParams, useNavigate, Link as RouterLink } from "react-router-dom"; import { BaseItemKind, @@ -693,6 +693,42 @@ const ItemDetail = () => { > {item.data.OriginalTitle} + {!!item.data.AlbumArtists && ( + + , + + } + > + {item.data.AlbumArtists.map( + ( + artist, + aindex, + ) => { + return ( + + { + artist.Name + } + + ); + }, + )} + + )} { items.refetch(); }; + const disablePaginationViews = [ + "MusicArtist", + "Person", + "Genre", + "MusicGenre", + "Studio", + ]; + return ( { )} {!items.isFetching && + !disablePaginationViews.includes(currentViewType) && items.isSuccess && - items.data.TotalRecordCount > 75 && ( + items.data.TotalRecordCount > maxDisplayItems && (