Fix card overlay actin buttons going to item page

This commit is contained in:
prayag17 committed 2023-05-01 14:08:58 +05:30
1 parent 7c1df32117
commit fbe31a190a
3 files changed
+8 -8

No files matched your search

+7 -6
View File
@@ -92,8 +92,6 @@ export const Card = ({
"BoxSet",
"CollectionFolder",
"Movie",
"MusicAlbum",
"MusicVideo",
"Season",
"Series",
"Video",
@@ -140,6 +138,7 @@ export const Card = ({
? onClickEvent
: () => {
navigate(`/item/${itemId}`);
console.log("going...");
}
}
className="cardBox"
@@ -290,11 +289,12 @@ export const Card = ({
iconType,
) && (
<IconButton
onMouseDown={(e) => {
e.stopPropagation();
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
handleMarkAsPlayOrUnMarkAsPlay();
}}
onFocus={(e) => e.stopPropagation}
>
<MdiCheck
sx={{
@@ -307,11 +307,12 @@ export const Card = ({
)}
{allowedLikeButton.includes(iconType) && (
<IconButton
onMouseDown={(e) => {
e.stopPropagation();
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
handleLiking();
}}
onFocus={(e) => e.stopPropagation}
>
{isFavorite ? (
<MdiHeart
+1 -1
View File
@@ -6,7 +6,7 @@ import { mdiCheck } from "@mdi/js";
export const MdiCheck = (props) => {
return (
<SvgIcon color="red" {...props}>
<SvgIcon {...props}>
<path d={mdiCheck}></path>
</SvgIcon>
);
-1
View File
@@ -396,7 +396,6 @@ const LibraryView = () => {
useEffect(() => {
if (viewType.length != 0) {
setCurrentViewType(viewType[0].value);
console.log(viewType);
}
}, [viewType]);