diff --git a/src/components/layouts/item/hero.jsx b/src/components/layouts/item/hero.jsx index 13aa940..e59711e 100644 --- a/src/components/layouts/item/hero.jsx +++ b/src/components/layouts/item/hero.jsx @@ -10,8 +10,9 @@ import { yellow } from "@mui/material/colors"; import { endsAt, getRuntime } from "../../../utils/date/time"; import LikeButton from "../../buttons/likeButton"; import MarkPlayedButton from "../../buttons/markPlayedButton"; +import PlayButton from "../../buttons/playButton"; -const Hero = ({ item, queryKey, userId }) => { +const Hero = ({ item, queryKey, userId, writers, directors, artists }) => { return (
@@ -36,9 +37,20 @@ const Hero = ({ item, queryKey, userId }) => { disablePadding />
-
+
-
+
{ mt={1} > {!!item.ProductionYear @@ -93,7 +105,7 @@ const Hero = ({ item, queryKey, userId }) => { }} /> {Math.round( @@ -104,7 +116,7 @@ const Hero = ({ item, queryKey, userId }) => { ) : ( No Community Rating @@ -113,7 +125,7 @@ const Hero = ({ item, queryKey, userId }) => {
{!!item.RunTimeTicks && ( {getRuntime(item.RunTimeTicks)} @@ -121,7 +133,7 @@ const Hero = ({ item, queryKey, userId }) => { )} {!!item.RunTimeTicks && ( {endsAt(item.RunTimeTicks)} @@ -129,7 +141,7 @@ const Hero = ({ item, queryKey, userId }) => { )} @@ -139,9 +151,24 @@ const Hero = ({ item, queryKey, userId }) => {
+ { {item.Overview}
+
+
+ + Written by + + + {writers + .map((writer) => writer.Name) + .join(", ")} + +
+
+ + Directed by + + + {directors + .map((director) => director.Name) + .join(", ")} + +
+
); diff --git a/src/routes/item/index.jsx b/src/routes/item/index.jsx index 01e80ca..3df8224 100644 --- a/src/routes/item/index.jsx +++ b/src/routes/item/index.jsx @@ -586,6 +586,8 @@ const ItemDetail = () => { item={item.data} userId={user.data.Id} queryKey={["item", id]} + writers={writers} + directors={directors} />
);