Remove few bugs

This commit is contained in:
prayag17 committed 2023-04-26 16:51:47 +05:30
1 parent ccb2a628cf
commit a08c51a00c
10 files changed
+117 -171

No files matched your search

+4 -12
View File
@@ -28,7 +28,6 @@ import { green, pink } from "@mui/material/colors";
import { AvatarImage } from "../../components/avatar/avatar";
import { Blurhash } from "react-blurhash";
import { showAppBar, showBackButton } from "../../utils/slice/appBar";
import { useDispatch, useSelector } from "react-redux";
import { useParams, useNavigate } from "react-router-dom";
@@ -97,17 +96,9 @@ const ItemDetail = () => {
const { id } = useParams();
const dispatch = useDispatch();
const navigate = useNavigate();
const appBarVisiblity = useSelector((state) => state.appBar.visible);
const [primageImageLoaded, setPrimaryImageLoaded] = useState(false);
const [backdropImageLoaded, setBackdropImageLoaded] = useState(false);
useEffect(() => {
if (!appBarVisiblity) {
dispatch(showAppBar());
}
dispatch(showBackButton());
}, []);
const user = useQuery({
queryKey: ["user"],
queryFn: async () => {
@@ -509,7 +500,7 @@ const ItemDetail = () => {
>
<Box
className="item-detail-header"
mb={0}
mb={2}
paddingTop={
item.data.Type == BaseItemKind.MusicAlbum
? 10
@@ -698,8 +689,8 @@ const ItemDetail = () => {
)}
</Typography>
<Typography
variant="subtitle1"
color="gray"
variant="h6"
sx={{ opacity: 0.7 }}
>
{item.data.OriginalTitle}
</Typography>
@@ -865,6 +856,7 @@ const ItemDetail = () => {
</IconButton>
</Stack>
</Box>
<Box
className="item-detail-tagline"
sx={{ width: "100%" }}