diff --git a/src/components/ProductStatusCard/index.js b/src/components/ProductStatusCard/index.js index 5a848f3..e063f7b 100644 --- a/src/components/ProductStatusCard/index.js +++ b/src/components/ProductStatusCard/index.js @@ -33,8 +33,7 @@ const ProductStatusCard = ({ addToFavorite, headerOptions, }) => { - const { logo, hamburgerMenu, qr, shown, menu, title, back, bookmark } = - headerOptions; + const { bookmark } = headerOptions; return (
@@ -48,6 +47,7 @@ const ProductStatusCard = ({
+ {seller && (
@@ -102,7 +102,7 @@ const ProductStatusCard = ({ )}
-

+

{separate(price)} {window.t("تومان")} diff --git a/src/views/Video/index.js b/src/views/Video/index.js index b97de79..244110f 100644 --- a/src/views/Video/index.js +++ b/src/views/Video/index.js @@ -19,6 +19,8 @@ import Loading from "../../components/Loading"; //assets import tickIcon from "../../components/ProductStatusCard/tick-circle.svg"; import arrow from "../../assets/icons/dropdown-blue.svg"; +import bookmarkDeactiveLightIcon from "../../assets/icons/bookmark-deactive-light.svg"; +import bookmarkDeactiveDarkIcon from "../../assets/icons/bookmark-deactive-dark.svg"; function Video({ isLogin, @@ -32,11 +34,13 @@ function Video({ getBook, book, seasons, + addToFavorite, }) { useEffect(() => { getBook({ bookId: location.getId() }, { id: location.getId(), vod: true }); setHeaderOptions(headerOptions); }, []); + const { bookmark } = headerOptions; return isMobile ? (

@@ -180,6 +184,25 @@ function Video({

{`توصیه خرید توسط ${book?.product[2]?.suggestedCounter} نفر`}

+ {bookmark && ( +
+ bookmark + addToFavorite({ [bookmark]: location.getId() }) + } + /> + + اضافه کردن به لیست علاقه مندی ها + +
+ )}