Add criticsRating and improve icons and animations in itemPage
This commit is contained in:
12 files changed
+194
-74
No files matched your search
@@ -7,6 +7,8 @@ import CircularProgress from "@mui/material/CircularProgress";
|
||||
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
import {
|
||||
BaseItemKind,
|
||||
ItemFields,
|
||||
@@ -27,6 +29,7 @@ import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
|
||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||
import { ActorCard } from "../../components/card/actorCards";
|
||||
import { useApi } from "../../utils/store/api";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
|
||||
@@ -175,7 +178,18 @@ const EpisodeTitlePage = () => {
|
||||
}
|
||||
if (item.isSuccess) {
|
||||
return (
|
||||
<div
|
||||
<motion.div
|
||||
key={id}
|
||||
initial={{
|
||||
opacity: 0,
|
||||
}}
|
||||
animate={{
|
||||
opacity: 1,
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.25,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
className="scrollY episode"
|
||||
style={{
|
||||
padding: "5em 2em 2em 1em",
|
||||
@@ -270,7 +284,7 @@ const EpisodeTitlePage = () => {
|
||||
)}
|
||||
</CardScroller>
|
||||
)}
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
}
|
||||
if (item.isError) {
|
||||
|
||||
Reference in new issue
Block a user