Update
This commit is contained in:
5 files changed
+57
-67
No files matched your search
@@ -721,7 +721,7 @@ const Hero = ({
|
||||
{writers.map((writer, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={index}
|
||||
key={writer.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/person/${writer.Id}`}
|
||||
>
|
||||
@@ -763,7 +763,7 @@ const Hero = ({
|
||||
{directors.map((director, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={index}
|
||||
key={director.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/person/${director.Id}`}
|
||||
>
|
||||
@@ -805,7 +805,7 @@ const Hero = ({
|
||||
{artists.map((artist, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
key={index}
|
||||
key={artist.Id}
|
||||
variant={"subtitle1"}
|
||||
location={`/artist/${artist.Id}`}
|
||||
>
|
||||
|
||||
@@ -29,10 +29,10 @@ const GenreView = ({ libraryId, genreId, genreName, userId }) => {
|
||||
displayCards={8}
|
||||
disableDecoration
|
||||
>
|
||||
{items.data.Items.map((item, index) => {
|
||||
{items.data.Items.map((item) => {
|
||||
return (
|
||||
<Card
|
||||
key={index}
|
||||
key={item.Id}
|
||||
item={item}
|
||||
seriesId={item.SeriesId}
|
||||
cardTitle={
|
||||
|
||||
@@ -138,45 +138,43 @@ export const SideMenu = () => {
|
||||
Home
|
||||
</Typography>
|
||||
</NavLink>
|
||||
{libraries.data.Items.map(
|
||||
(lib, index) => {
|
||||
return (
|
||||
<Tooltip
|
||||
title={lib.Name}
|
||||
placement="right"
|
||||
arrow
|
||||
followCursor
|
||||
key={index}
|
||||
{libraries.data.Items.map((lib) => {
|
||||
return (
|
||||
<Tooltip
|
||||
title={lib.Name}
|
||||
placement="right"
|
||||
arrow
|
||||
followCursor
|
||||
key={lib.Id}
|
||||
>
|
||||
<NavLink
|
||||
to={`/library/${lib.Id}`}
|
||||
className="sidemenu-item"
|
||||
>
|
||||
<NavLink
|
||||
to={`/library/${lib.Id}`}
|
||||
className="sidemenu-item"
|
||||
<div className="sidemenu-item-icon">
|
||||
{getTypeIcon(
|
||||
lib.CollectionType,
|
||||
)}
|
||||
</div>
|
||||
<Typography
|
||||
className="sidemenu-item-text"
|
||||
variant="caption"
|
||||
fontWeight={
|
||||
500
|
||||
}
|
||||
style={{
|
||||
width: "80%",
|
||||
}}
|
||||
overflow="hidden"
|
||||
textOverflow="ellipsis"
|
||||
textAlign="center"
|
||||
>
|
||||
<div className="sidemenu-item-icon">
|
||||
{getTypeIcon(
|
||||
lib.CollectionType,
|
||||
)}
|
||||
</div>
|
||||
<Typography
|
||||
className="sidemenu-item-text"
|
||||
variant="caption"
|
||||
fontWeight={
|
||||
500
|
||||
}
|
||||
style={{
|
||||
width: "80%",
|
||||
}}
|
||||
overflow="hidden"
|
||||
textOverflow="ellipsis"
|
||||
textAlign="center"
|
||||
>
|
||||
{lib.Name}
|
||||
</Typography>
|
||||
</NavLink>
|
||||
</Tooltip>
|
||||
);
|
||||
},
|
||||
)}
|
||||
{lib.Name}
|
||||
</Typography>
|
||||
</NavLink>
|
||||
</Tooltip>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user