-
-
- {datas.title}
-
-
+ className,
+ datas,
+ hidden = false,
+}) {
+ //debugger;
+ const [addFavorite, setValue] = useState(datas.whishlisted);
+ const [options, setOption] = useState(false);
+ const favoriteHandler = () => {
+ if (!addFavorite) {
+ setValue(true);
+ toast.success("Added to Favorite List");
+ } else {
+ setValue(false);
+ toast.warn("Remove to Favorite List");
+ }
+ };
+ return (
+
+
+
+
+ {datas.title}
+
+
-
-
-
-
Added
-
- {datas.offer_added}
-
-
-
-
-
-
-
- Expires
-
-
- {datas.expire}
-
-
-
-
-
-
-
- {datas.description}
-
-
-
-
-
-
-
-
-
-
-
-
- {/*
*/}
- {/* {datas.isActive && (*/}
- {/* */}
- {/* Active*/}
- {/**/}
- {/* )}*/}
- {/*
*/}
-
-
- {/*
*/}
- {/* */}
- {/*
*/}
-
-
-
-
-
-
- {datas.price*0.01}{datas.currency} | {datas.timeline_days} day(s)
-
-
- ( {datas.offer_code})
-
-
-
-
-
-
-
-
+
+
+
+
Added
+
+ {datas.offer_added}
+
+
+
+
+
+
+ Expires
+
+
+ {datas.expire}
+
+
+
- );
+
+
+
+ {/*
*/}
+ {/* {datas.isActive && (*/}
+ {/* */}
+ {/* Active*/}
+ {/**/}
+ {/* )}*/}
+ {/*
*/}
+
+ {/*
*/}
+ {/* */}
+ {/*
*/}
+
+
+
+
+
+
+ {datas.price * 0.01}
+ {datas.currency} | {datas.timeline_days} day(s)
+
+
+ ( {datas.offer_code})
+
+
+
+
+
+
+
+
+
+
+ );
}
diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx
index fec95a8..566b7fb 100644
--- a/src/components/MarketPlace/MainSection.jsx
+++ b/src/components/MarketPlace/MainSection.jsx
@@ -95,7 +95,7 @@ export default function MainSection({ className, marketPlaceProduct }) {
{({ datas }) => (
diff --git a/src/components/MyCollection/CollectionItem/MainSection.jsx b/src/components/MyCollection/CollectionItem/MainSection.jsx
index e4f5aed..a32918d 100644
--- a/src/components/MyCollection/CollectionItem/MainSection.jsx
+++ b/src/components/MyCollection/CollectionItem/MainSection.jsx
@@ -9,7 +9,7 @@ export default function MainSection({ collectionData, className }) {
{({ datas }) => (
diff --git a/src/components/MyCollection/MainSection.jsx b/src/components/MyCollection/MainSection.jsx
index f5b94df..5eefb91 100644
--- a/src/components/MyCollection/MainSection.jsx
+++ b/src/components/MyCollection/MainSection.jsx
@@ -8,7 +8,7 @@ function MainSection({ collectionData, className }) {
{({ datas }) => (
diff --git a/src/components/Resources/CollectionTab.jsx b/src/components/Resources/CollectionTab.jsx
index ac684e9..e55d087 100644
--- a/src/components/Resources/CollectionTab.jsx
+++ b/src/components/Resources/CollectionTab.jsx
@@ -42,7 +42,7 @@ export default function CollectionTab({ className, products }) {
{({ datas }) => (
diff --git a/src/components/Resources/OnSaleTab.jsx b/src/components/Resources/OnSaleTab.jsx
index cbe8665..7685cae 100644
--- a/src/components/Resources/OnSaleTab.jsx
+++ b/src/components/Resources/OnSaleTab.jsx
@@ -42,7 +42,7 @@ export default function OnSaleTab({ className, products }) {
{({ datas }) => (
diff --git a/src/components/Resources/OwnTab.jsx b/src/components/Resources/OwnTab.jsx
index 5831b9d..36b0155 100644
--- a/src/components/Resources/OwnTab.jsx
+++ b/src/components/Resources/OwnTab.jsx
@@ -42,7 +42,7 @@ export default function OwnTab({ className, products }) {
{({ datas }) => (
diff --git a/src/components/Saved/MainSection.jsx b/src/components/Saved/MainSection.jsx
index cd7b8f0..fe73254 100644
--- a/src/components/Saved/MainSection.jsx
+++ b/src/components/Saved/MainSection.jsx
@@ -7,7 +7,7 @@ export default function MainSection({ products }) {
{({ datas }) => (