جمع لوازم اختیاری خریداری شده
- {price}
-
+ {separate(price)}
تومان
@@ -84,7 +94,7 @@ const ProductSuggestion = ({ suggestions, isDark, id, getSimilar, book, similarL
در صورت تمایل می توانید موارد بالا را به سبد خرید اضافه کنید
-
+
{/*
{
+ number += "";
+ number = number.replace(",", "");
+ let x = number.split(".");
+ let y = x[0];
+ let z = x.length > 1 ? "." + x[1] : "";
+ let rgx = /(\d+)(\d{3})/;
+ while (rgx.test(y)) y = y.replace(rgx, "$1" + "," + "$2");
+ return y + z;
+};
+
+export default separate;
diff --git a/src/views/Auth/SignUp/index.js b/src/views/Auth/SignUp/index.js
index 38a3460..8e6ae30 100644
--- a/src/views/Auth/SignUp/index.js
+++ b/src/views/Auth/SignUp/index.js
@@ -130,7 +130,7 @@ function SignUp({
useEffect(() => {
if (loginFlag) {
- // navigate("/");
+ navigate("/");
}
}, [loginFlag]);
const light = theme === "light";
diff --git a/src/views/Home/Desktop/Part4/index.js b/src/views/Home/Desktop/Part4/index.js
index 52b1ace..206f50a 100644
--- a/src/views/Home/Desktop/Part4/index.js
+++ b/src/views/Home/Desktop/Part4/index.js
@@ -3,7 +3,7 @@ import Button from "../../../../components/Button";
import VodProduct from "../../../../components/VodProduct";
import { Link } from "react-router-dom";
import posterImage from "../../../../assets/images/poster.svg";
-const Part4 = () => {
+const Part4 = ({ books, grades }) => {
const videosData = [
{
id: 0,
@@ -86,25 +86,20 @@ const Part4 = () => {
style={{}}
>
);
diff --git a/src/views/VideoDisplay/Desktop/index.js b/src/views/VideoDisplay/Desktop/index.js
deleted file mode 100644
index 0eba82d..0000000
--- a/src/views/VideoDisplay/Desktop/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import React from "react";
-import CourseChapter from "../../../components/CourseChapter";
-import VideoPlayer from "../../../components/VideoPlayer";
-const DesktopVideoDisplay = () =>{
- return(
-
-
-
-
-
-
-
-
-
ساز های باستانی ایران عزیز
-
- لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.
-
-
-
-
- {/*
-
-
- {product.name}
-
- {product.grade}
-
-
-
*/}
-
-
-
-
-
- );
-};
-
-export default DesktopVideoDisplay;
\ No newline at end of file
diff --git a/src/views/VideoDisplay/index.js b/src/views/VideoDisplay/index.js
index 444f031..8d2d199 100644
--- a/src/views/VideoDisplay/index.js
+++ b/src/views/VideoDisplay/index.js
@@ -1,10 +1,13 @@
import React, { useState, useEffect } from "react";
import { connect } from "react-redux";
import { publicApi } from "../../redux/actions";
+import PlayList from "../../components/CourseChapter";
+import VideoPlayer from "../../components/VideoPlayer";
+import JolPlayer from "../../components/JolPlayer";
+
import poster from "../../assets/images/poster.svg";
import Divider from "../../components/Divider";
import Season from "./components/Season";
-import DesktopVideoDisplay from "./Desktop";
function VideoDisplay({
isMobile,
@@ -48,17 +51,24 @@ function VideoDisplay({
seasons,
grades,
getBook,
+ getSeason,
+ selectedVideo,
}) {
useEffect(() => {
const id = window.location.pathname.slice(
8,
window.location.pathname.lastIndexOf("/")
);
-
+ getBook({bookId : id});
setHeaderOptions(headerOptions);
- // getBook({ bookId: id });
+ const cat = localStorage.getItem("season")?.split(",");
+ getSeason({ bookId: cat[0], categoryId: cat[1] });
}, []);
+ useEffect(() => {
+
+ },[])
+
const enamad =
'';
return isMobile ? (
@@ -92,21 +102,58 @@ function VideoDisplay({
) : (
-
+
+
+
+
+
+ {selectedVideo?.name}
+
+
+ لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با
+ استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در
+ ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز،
+ و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای
+ زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و
+ متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان
+ رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد
+ کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه
+ راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل
+ حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود
+ طراحی اساسا مورد استفاده قرار گیرد.
+