diff --git a/src/components/card/card.jsx b/src/components/card/card.jsx index 2f87f6b..ce3d83f 100644 --- a/src/components/card/card.jsx +++ b/src/components/card/card.jsx @@ -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, ) && ( { - e.stopPropagation(); + onClick={(e) => { e.preventDefault(); + e.stopPropagation(); handleMarkAsPlayOrUnMarkAsPlay(); }} + onFocus={(e) => e.stopPropagation} > { - e.stopPropagation(); + onClick={(e) => { e.preventDefault(); + e.stopPropagation(); handleLiking(); }} + onFocus={(e) => e.stopPropagation} > {isFavorite ? ( { return ( - + ); diff --git a/src/routes/library/index.jsx b/src/routes/library/index.jsx index 8753d52..de02187 100644 --- a/src/routes/library/index.jsx +++ b/src/routes/library/index.jsx @@ -396,7 +396,6 @@ const LibraryView = () => { useEffect(() => { if (viewType.length != 0) { setCurrentViewType(viewType[0].value); - console.log(viewType); } }, [viewType]);