setVideoActive(video)}
diff --git a/src/views/Home/Landscape/VideoTube/index.js b/src/views/Home/Landscape/VideoTube/index.js
index a88a3ba..c06e16b 100644
--- a/src/views/Home/Landscape/VideoTube/index.js
+++ b/src/views/Home/Landscape/VideoTube/index.js
@@ -1,4 +1,8 @@
import React, { useEffect, useRef } from "react";
+import { connect } from "react-redux";
+import { book, publicApi } from "../../../../redux/actions";
+
+//components
import LessonPlayList from "./LessonPlayList";
import Attachments from "./Attachments";
import Book from "./Book";
@@ -6,19 +10,10 @@ import AddComment from "./AddComment";
import Video from "../../../../components/JolPlayer";
import Test from "../Test";
import listIcon from "../../../../assets/icons/list.png";
-import { connect } from "react-redux";
-import _ from "lodash";
-import { book, publicApi } from "../../../../redux/actions";
+
// import Loader from "../../components/Loader";
-function VodTube({
- top,
- autoPlay,
- selectedVideo,
- info,
- getInfo,
- theme,
-}) {
+function VodTube({ top, autoPlay, selectedVideo, info, getInfo, theme }) {
const videoListTag = useRef(null);
useEffect(() => {
getInfo({
@@ -29,13 +24,9 @@ function VodTube({
return (
e.stopPropagation()}
- className={_.join(
- [
- "fixed flex rtl pt-20 lg:px-5 xl:px-10 w-full bg-white dark:bg-black bg-opacity-80 transition-opacity duration-500 min-h-screen backdrop-filter backdrop-blur-md",
- top > 10 ? "opacity-0 z-0" : "opacity-100 z-10",
- ],
- " "
- )}
+ className={`fixed flex rtl pt-20 lg:px-5 xl:px-10 w-full bg-white dark:bg-black bg-opacity-80 transition-opacity duration-500 min-h-screen backdrop-filter backdrop-blur-md
+ ${top > 10 ? "opacity-0 z-0" : "opacity-100 z-10"}
+ `}
style={{ top: top }}
>
{/* */}
@@ -159,7 +150,7 @@ function VodTube({
export default connect(
(state) => ({
- top : state.scrollAction.videoTubeTopPosition,
+ top: state.scrollAction.videoTubeTopPosition,
selectedVideo: state.publicApi.selectedVideo,
info: state.publicApi?.bookInfo,
loading: state.publicApi.loading,
diff --git a/src/views/Home/Portrait/Private/Blogs/index.js b/src/views/Home/Portrait/Private/Blogs/index.js
index 8da080b..02303c9 100644
--- a/src/views/Home/Portrait/Private/Blogs/index.js
+++ b/src/views/Home/Portrait/Private/Blogs/index.js
@@ -2,7 +2,6 @@ import React from "react";
import { Link } from "react-router-dom";
import { connect } from "react-redux";
import { blog } from "../../../../../redux/actions";
-import _ from "lodash";
//assets
import arrowGreenIcon from "../../../../../assets/icons/dropdown-blue.svg";
@@ -78,7 +77,7 @@ const Blog = ({ blog, setActive }) => {
- {_.join([window.t("زمان مناسب"), "30"], " ")}
+ {window.t("زمان مناسب") + " " + "30"}
diff --git a/src/views/Products/layouts/Mobile/Header.js b/src/views/Products/layouts/Mobile/Header.js
index 4bfc8b6..efc3575 100644
--- a/src/views/Products/layouts/Mobile/Header.js
+++ b/src/views/Products/layouts/Mobile/Header.js
@@ -1,7 +1,6 @@
import React from "react";
import { connect } from "react-redux";
import { book } from "../../../../redux/actions";
-import _ from "lodash";
import Search from "../../../../components/Search";
import Select from "../../../../components/Select";
@@ -25,10 +24,7 @@ export const Header = ({
borderColor="border-grayDB dark:border-gray45"
textColor="text-black dark:text-gray70"
icon={searchLight}
- onChange={_.debounce(
- (val) => setFilterOptions({ ...filterOptions, search: val }),
- 700
- )}
+ onChange={(val) => setFilterOptions({ ...filterOptions, search: val })}
/>