diff --git a/src/components/skeleton/seasonSelector.jsx b/src/components/skeleton/seasonSelector.jsx index f5305b1..98b20f0 100644 --- a/src/components/skeleton/seasonSelector.jsx +++ b/src/components/skeleton/seasonSelector.jsx @@ -53,13 +53,16 @@ export const SeasonSelectorSkeleton = () => { @@ -71,14 +74,42 @@ export const SeasonSelectorSkeleton = () => { }} > - + - - + + - + diff --git a/src/routes/person/index.jsx b/src/routes/person/index.jsx index 10689a4..314f661 100644 --- a/src/routes/person/index.jsx +++ b/src/routes/person/index.jsx @@ -10,7 +10,7 @@ import Typography from "@mui/material/Typography"; import { AnimatePresence, motion } from "framer-motion"; -import { useParams } from "react-router-dom"; +import { Link, useParams } from "react-router-dom"; import { BaseItemKind, @@ -232,7 +232,13 @@ const PersonTitlePage = () => { } } setBackdrop("", ""); - }, []); + }, [ + personMovies.isSuccess, + personShows.isSuccess, + personBooks.isSuccess, + personPhotos.isSuccess, + personEpisodes.isSuccess, + ]); const [animationDirection, setAnimationDirection] = useState("forward"); @@ -338,9 +344,57 @@ const PersonTitlePage = () => { /> - - {item.data.Overview ?? ""} - +
+
+ + {item.data.Overview ?? ""} + +
+ {item.data.ExternalUrls.map((url) => ( + + {url.Name} + + ))} +
+
+ +
+ {item.data.PremiereDate && ( + <> + Born + + {new Date(item.data.PremiereDate).toDateString()} + + + )} + {item.data.EndDate && ( + <> + + Death + + + {new Date(item.data.EndDate).toDateString()} + + + )} +
+
diff --git a/src/routes/series/index.jsx b/src/routes/series/index.jsx index 9ed1ca5..4c9126e 100644 --- a/src/routes/series/index.jsx +++ b/src/routes/series/index.jsx @@ -345,6 +345,10 @@ const SeriesTitlePage = () => { > {item.data.ProductionYear ?? ""} + {item.data.Status === "Continuing" + ? " - Present" + : item.data.EndDate && + ` - ${new Date(item.data.EndDate).getFullYear()}`} {item.data.OfficialRating && (