- {/* select Color */}
{productColor && (
- {/* content */}
{"دوره ویدیویی" + " " + video?.name}
- {console.log(video?.gradeId)}
{"پایه" + " " + grades[video?.gradeId]}
- {/* {video.grade} */}
{productContent && (
@@ -165,7 +141,6 @@ const VodProduct = ({
- {/* price */}
-
- {/* {discountPrice && (
-
- قیمت 140تومان
-
- )} */}
- {separate(video?.product[2]?.price) + ' '}
- {/* {video.price} */}
+ {separate(video?.product[2]?.price) + " "}
تومان
- {/* add to cart */}
{addToCartHolder && (
{productTags && (
@@ -238,64 +197,11 @@ const VodProduct = ({
- {/*
*/}
>
);
};
-// hover:-translate-y-2
export default VodProduct;
-// text colors i used for product title:
-// text-darkCrimsonTextColor
-// text-productTitle
-
-// text color i used for product excerpt:
-// text-productContent
-
-// text color i used for product cat:
-// text-darkCrimsonTextColor
-
-// bg color i used for play button icon:
-// bg-playButtonIcon
-// bg-playButtonIcon2
-
VodProduct.defaultProps = {
colors: [
{
@@ -345,17 +251,7 @@ VodProduct.defaultProps = {
productTitleCategoryHolder: "flex-row",
productTitleCategoryHolderAlignment: "items-center",
-
- // برای اینکه بتونیم ستاره هارو بالا قیمت بزاریم و دیزاین را مثل کتاب ها در بیاریم
- // یادمون باشه که حتما رویه
- // flex-col-reverse
- // بزاریم
-
- // دیفالتش باید این باشه:
- // priceStarHolder: flex-row
priceStarHolder: "flex-row",
- // دیفالتش باید این باشه:
- // priceStarHolder: items-center
priceStarAlignment: "items-center",
poster: watermelon,
};
diff --git a/src/redux/reducers/book.js b/src/redux/reducers/book.js
index b1b86fa..c1850d9 100644
--- a/src/redux/reducers/book.js
+++ b/src/redux/reducers/book.js
@@ -10,25 +10,25 @@ const initialState = {
filterResult: [],
subjects: [],
levels: [],
- sortMethods: ["مرتب سازی", "محبوب ترین", "جدیدترین"],
+ sortMethods: ["محبوب ترین", "جدیدترین"],
selectedVideo: null,
gradeFilterBooks: null,
sortFilterCourse: null,
selectedGrade: null,
selectedSort: "پربازدید ترین ها",
- productTypes : [
+ productTypes: [
"کتاب فیزیکی",
"کتاب دیجیتال",
"دوره ویدئویی",
"بسته های آموزشی",
],
- filterOptions : {
- grade: '',
- subject: '',
+ filterOptions: {
+ grade: "",
+ subject: "",
productType: null,
- available : false,
+ available: false,
sort: null,
- }
+ },
};
const grades = [
@@ -119,7 +119,7 @@ export default function book(state = initialState, action) {
// case "book/search":
// return { ...state };
case "book/setFilterOptions":
- return { ...state, loading: false, error: null, filterOptions : data};
+ return { ...state, loading: false, error: null, filterOptions: data };
case "book/loading":
return { ...state, loading: true };
case "book/error":
diff --git a/src/redux/reducers/public.js b/src/redux/reducers/public.js
index f899492..97e11cb 100644
--- a/src/redux/reducers/public.js
+++ b/src/redux/reducers/public.js
@@ -189,7 +189,7 @@ export default function publicApi(state = initialState, action) {
...state,
loading: false,
error: null,
- city: [...state.city, ...data.map((item) => item.name)],
+ city: [...data.map((item) => item.name)],
cities : data,
};
case "public/selectMenu":
diff --git a/src/redux/reducers/userFactor.js b/src/redux/reducers/userFactor.js
index ae95fa3..2215993 100644
--- a/src/redux/reducers/userFactor.js
+++ b/src/redux/reducers/userFactor.js
@@ -37,7 +37,6 @@ export default function userFactor(state = initialState, action) {
case "userFactor/myList":
return { ...state, loading: false, list: data, error: null };
case "userFactor/update":
- toast.success("درخواست شما با موفقیت انجام شد.");
return { ...state, loading: false, error: null };
case "userFactor/deleteUserOffCode":
return { ...state, loading: false, error: null };
diff --git a/src/router.js b/src/router.js
index 3d1f490..8daaa66 100644
--- a/src/router.js
+++ b/src/router.js
@@ -371,7 +371,7 @@ function Router({
}
/>
- {/* {headerOptions?.shown && !isMobile &&
} */}
+ {!isMobile &&
}